/* ============================================
   Dosthara Booking Plugin — Frontend Styles
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=DM+Sans:wght@400;500;600&display=swap');

:root {
  --dos-red:      #c0392b;
  --dos-red-dark: #96281b;
  --dos-green:    #27ae60;
  --dos-orange:   #f39c12;
  --dos-blue:     #2980b9;
  --dos-dark:     #1a1a2e;
  --dos-mid:      #444;
  --dos-light:    #f7f7f7;
  --dos-border:   #e0e0e0;
  --dos-white:    #ffffff;
  --dos-radius:   10px;
  --dos-shadow:   0 4px 24px rgba(0,0,0,.08);
}

/* --- Booking Form --- */
.dosthara-form-wrap {
  font-family: 'DM Sans', sans-serif;
  max-width: 780px;
  margin: 0 auto;
  background: var(--dos-white);
  border-radius: var(--dos-radius);
  box-shadow: var(--dos-shadow);
  overflow: hidden;
  border: 1px solid var(--dos-border);
}

.dosthara-form-header {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--dos-dark);
  padding: 28px 36px;
}

.dosthara-form-cross {
  font-size: 38px;
  color: var(--dos-red);
  line-height: 1;
  font-weight: 700;
}

.dosthara-form-header h2 {
  font-family: 'Playfair Display', serif;
  color: #fff;
  margin: 0 0 4px;
  font-size: 22px;
}

.dosthara-form-header p {
  color: rgba(255,255,255,.65);
  margin: 0;
  font-size: 14px;
}

.dosthara-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 32px 36px 0;
}

.dosthara-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.dosthara-field-full {
  grid-column: 1 / -1;
}

.dosthara-field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--dos-mid);
  letter-spacing: .3px;
  text-transform: uppercase;
}

.dosthara-field label span {
  color: var(--dos-red);
}

.dosthara-field input,
.dosthara-field select,
.dosthara-field textarea {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  padding: 11px 14px;
  border: 1.5px solid var(--dos-border);
  border-radius: 7px;
  background: #fafafa;
  color: var(--dos-dark);
  transition: border-color .2s, box-shadow .2s;
  outline: none;
  width: 100%;
  box-sizing: border-box;
}

.dosthara-field input:focus,
.dosthara-field select:focus {
  border-color: var(--dos-red);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(192,57,43,.1);
}

.dosthara-field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.dosthara-form-footer {
  padding: 24px 36px 32px;
}

.dosthara-submit-btn {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 600;
  background: var(--dos-red);
  color: #fff;
  border: none;
  padding: 14px 36px;
  border-radius: 8px;
  cursor: pointer;
  transition: background .2s, transform .15s, box-shadow .2s;
  letter-spacing: .3px;
}

.dosthara-submit-btn:hover {
  background: var(--dos-red-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(192,57,43,.3);
}

.dosthara-submit-btn:active {
  transform: translateY(0);
}

.dosthara-submit-btn:disabled {
  opacity: .65;
  cursor: not-allowed;
  transform: none;
}

.dosthara-form-note {
  margin: 14px 0 0;
  font-size: 13px;
  color: #999;
}

/* Alerts */
.dosthara-alert {
  margin: 0 36px;
  padding: 14px 18px;
  border-radius: 7px;
  font-size: 15px;
  font-weight: 500;
}

.dosthara-alert-success {
  background: #eafaf1;
  color: #1e8449;
  border: 1px solid #a9dfbf;
}

.dosthara-alert-error {
  background: #fdedec;
  color: #c0392b;
  border: 1px solid #f5b7b1;
}

/* --- Portal --- */
.dosthara-portal-wrap {
  font-family: 'DM Sans', sans-serif;
  max-width: 820px;
  margin: 0 auto;
}

/* Login box */
.dosthara-login-box {
  background: var(--dos-white);
  border-radius: var(--dos-radius);
  box-shadow: var(--dos-shadow);
  overflow: hidden;
  border: 1px solid var(--dos-border);
  max-width: 440px;
  margin: 0 auto;
}

.dosthara-login-logo {
  background: var(--dos-dark);
  padding: 32px;
  text-align: center;
}

.dosthara-cross {
  font-size: 42px;
  color: var(--dos-red);
  display: block;
  line-height: 1;
  margin-bottom: 10px;
}

.dosthara-login-logo h2 {
  font-family: 'Playfair Display', serif;
  color: #fff;
  margin: 0 0 6px;
  font-size: 22px;
}

.dosthara-login-logo p {
  color: rgba(255,255,255,.6);
  margin: 0;
  font-size: 14px;
}

#dosthara-login-form {
  padding: 28px 32px 32px;
}

#dosthara-login-form .login-username,
#dosthara-login-form .login-password,
#dosthara-login-form .login-remember {
  margin-bottom: 16px;
}

#dosthara-login-form label {
  font-size: 13px;
  font-weight: 600;
  color: var(--dos-mid);
  text-transform: uppercase;
  letter-spacing: .3px;
  display: block;
  margin-bottom: 6px;
}

#dosthara-login-form input[type="text"],
#dosthara-login-form input[type="password"] {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--dos-border);
  border-radius: 7px;
  font-size: 15px;
  font-family: 'DM Sans', sans-serif;
  box-sizing: border-box;
  transition: border-color .2s;
}

#dosthara-login-form input[type="text"]:focus,
#dosthara-login-form input[type="password"]:focus {
  border-color: var(--dos-red);
  outline: none;
  box-shadow: 0 0 0 3px rgba(192,57,43,.1);
}

#dosthara-login-form input[type="submit"] {
  width: 100%;
  background: var(--dos-red);
  color: #fff;
  border: none;
  padding: 13px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  transition: background .2s;
}

#dosthara-login-form input[type="submit"]:hover {
  background: var(--dos-red-dark);
}

/* Portal header */
.dosthara-portal-header {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--dos-dark);
  color: #fff;
  padding: 22px 28px;
  border-radius: var(--dos-radius);
  margin-bottom: 24px;
}

.dosthara-cross-icon {
  font-size: 36px;
  color: var(--dos-red);
  font-weight: 700;
  line-height: 1;
}

.dosthara-portal-header h2 {
  font-family: 'Playfair Display', serif;
  margin: 0 0 4px;
  font-size: 20px;
}

.dosthara-portal-header p {
  margin: 0;
  color: rgba(255,255,255,.6);
  font-size: 14px;
}

.dosthara-logout-btn {
  margin-left: auto;
  background: rgba(255,255,255,.1);
  color: #fff;
  padding: 8px 18px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: background .2s;
  border: 1px solid rgba(255,255,255,.2);
  white-space: nowrap;
}

.dosthara-logout-btn:hover {
  background: rgba(255,255,255,.2);
  color: #fff;
}

/* Booking card */
.dosthara-booking-card {
  background: var(--dos-white);
  border-radius: var(--dos-radius);
  box-shadow: var(--dos-shadow);
  border: 1px solid var(--dos-border);
  margin-bottom: 28px;
  overflow: hidden;
}

.dosthara-booking-id {
  background: var(--dos-red);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .5px;
  padding: 10px 24px;
  font-family: 'DM Sans', sans-serif;
}

.dosthara-status-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.dosthara-status-table th,
.dosthara-status-table td {
  padding: 13px 24px;
  text-align: left;
  border-bottom: 1px solid var(--dos-border);
}

.dosthara-status-table th {
  color: #888;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .3px;
  width: 38%;
  background: #fafafa;
}

.dosthara-status-table td {
  color: var(--dos-dark);
}

.dosthara-section-title {
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  color: var(--dos-dark);
  margin: 0;
  padding: 16px 24px 12px;
  border-top: 2px solid var(--dos-border);
  border-bottom: 1px solid var(--dos-border);
  background: #fef9f9;
}

.dosthara-payment-info {
  font-size: 14px;
  color: var(--dos-mid);
  line-height: 1.7;
  background: #f7f7f7;
  padding: 10px 14px;
  border-radius: 6px;
  border: 1px solid #e8e8e8;
}

/* Badges */
.dosthara-badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .3px;
}

.dosthara-badge-pending  { background: #fef3cd; color: #856404; }
.dosthara-badge-success  { background: #d1f2eb; color: #1a7a4a; }
.dosthara-badge-danger   { background: #fde8e6; color: #a93226; }
.dosthara-badge-package  { background: #e8f4fd; color: #1a5276; }

.dosthara-notice {
  background: var(--dos-light);
  border: 1px solid var(--dos-border);
  border-radius: var(--dos-radius);
  padding: 28px;
  text-align: center;
  color: #888;
  font-size: 15px;
}

.dosthara-download-btn {
  display: inline-block;
  background: var(--dos-green);
  color: #fff;
  padding: 8px 18px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: background .2s;
}

.dosthara-download-btn:hover {
  background: #1e8449;
  color: #fff;
}

/* Responsive */
@media (max-width: 600px) {
  .dosthara-form-grid       { grid-template-columns: 1fr; }
  .dosthara-form-header,
  .dosthara-form-footer     { padding: 22px 20px; }
  .dosthara-form-grid       { padding: 20px 20px 0; }
  .dosthara-alert           { margin: 0 20px; }
  .dosthara-portal-header   { flex-wrap: wrap; }
  .dosthara-status-table th { width: 42%; }
  .dosthara-status-table th,
  .dosthara-status-table td { padding: 11px 16px; }
}

/* Required / optional markers */
.dosthara-req {
  color: var(--dos-red);
  font-weight: 700;
}

.dosthara-optional {
  color: #aaa;
  font-size: 11px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}

.dosthara-required-note {
  font-size: 13px;
  color: #999;
  margin: 0 0 14px;
}

/* Textarea in form */
.dosthara-field textarea {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  padding: 11px 14px;
  border: 1.5px solid var(--dos-border);
  border-radius: 7px;
  background: #fafafa;
  color: var(--dos-dark);
  transition: border-color .2s, box-shadow .2s;
  outline: none;
  width: 100%;
  box-sizing: border-box;
  resize: vertical;
  min-height: 100px;
}

.dosthara-field textarea:focus {
  border-color: var(--dos-red);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(192,57,43,.1);
}

/* Date input */
.dosthara-field input[type="date"] {
  cursor: pointer;
}

/* Field error highlight */
.dosthara-field-error {
  border-color: var(--dos-red) !important;
  box-shadow: 0 0 0 3px rgba(192,57,43,.12) !important;
}
