/* Quote Forms Shared Styles */

/* Contact Methods Container - Responsive Layout */
.contact-methods-container {
    display: flex;
    gap: 20px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.contact-method {
    flex: 1;
    min-width: 250px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid var(--green);
}

.contact-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 10px 0;
    font-weight: 600;
    color: #333;
}

.contact-header svg {
    flex-shrink: 0;
}

.phone-numbers-container_in {
    margin-left: 24px;
    color: #555;
}

.phone-number_in {
    font-weight: 500;
}

.email-info {
    margin-left: 24px;
}

.email-info a {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}

.email-info a:hover {
    text-decoration: underline;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .contact-methods-container {
        flex-direction: column;
        gap: 15px;
    }

    .contact-method {
        min-width: auto;
    }

    .phone-numbers-container {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }

    .phone-separator {
        display: none;
    }
}

@media (max-width: 480px) {
    .quote-form-container * {
      font-size: 10pt !important;
    }

    .contact-method {
        padding: 12px;
    }

    .contact-header {
        font-size: 14px;
    }

    .phone-numbers-container,
    .email-info {
        font-size: 14px;
    }

    .service-info-section {
        padding: 10px !important;
    }
}
/* Flash message base */
.message {
  padding: 15px 20px;
  margin: 20px auto;
  border-radius: 8px;
  font-size: 16px;
  max-width: 800px;
  text-align: center;
  animation: fadeIn 0.6s ease;
}

/* Success messages */
.message.success {
  background: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

/* Error messages if you use Flash->error() */
.message.error {
  background: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
}

/* Optional fade-in animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.quote-form-container {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.quote-form {
    max-width: 800px;
    margin: 0 auto;
}

.form-section {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.icon-circle {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--green), var(--green));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.icon-circle svg {
    width: 24px;
    height: 24px;
    fill: white;
}

.section-header h2 {
    margin: 0;
    color: #333;
    font-size: 24px;
    font-weight: 700;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

.styled-select, .form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.styled-select:focus, .form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: none;
    border-color: #8a9b7a;
    box-shadow: 0 0 0 3px rgba(138, 155, 122, 0.1);
}

/* CakePHP form styling overrides */
.form-group .input {
    margin-bottom: 0;
}

.form-group .input label {
    font-weight: 600;
    color: #555;
    margin-bottom: 8px;
    display: block;
}

.form-group .input input,
.form-group .input select,
.form-group .input textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.form-group .input input:focus,
.form-group .input select:focus,
.form-group .input textarea:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(138, 155, 122, 0.1);
}

.address-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-top: 10px;
}

.address-grid .full-width {
    grid-column: 1;
}

.address-grid .suburb-state-zip {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 15px;
}

/* Override CakePHP form structure for better address layout */
.address-grid .input {
    margin-bottom: 0;
}

.move-extra {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--green);
    margin-top: 15px;
    margin-bottom: 30px;
}

.btn-submit {
    background: linear-gradient(135deg, #8a9b7a, #6b7b5c);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    margin: 30px auto 0;
    min-width: 200px;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(138, 155, 122, 0.3);
}

.btn-submit:disabled {
    background: #e9ecef;
    color: #6c757d;
    border: 1px solid #8a8a8a;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-submit:disabled:hover {
    background: #e9ecef;
    color: #6c757d;
    transform: none;
    box-shadow: none;
}

.progress-indicator {
    text-align: center;
    color: #333;
}

.progress-indicator h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #333;
}

.progress-indicator p {
    font-size: 1.2rem;
    color: #666;
}

#step3.form-section {
    padding: 30px;
}

@media (max-width: 768px) {
    .address-grid {
        grid-template-columns: 1fr;
    }

    .full-width {
        grid-column: span 1;
    }

    .quote-form {
        padding: 10px;
    }

    .form-section {
        padding: 20px;
    }

    .section-header {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}

/* Google Maps Autocomplete Styling */
.pac-container {
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  z-index: 1000;
}

.pac-item {
  padding: 12px 15px;
  font-size: 16px;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
}

.pac-item:hover {
  background-color: #f8f9fa;
}

.pac-item-selected {
  background-color: #8a9b7a !important;
  color: white;
}

.pac-matched {
  font-weight: 600;
}

/* Style for readonly and disabled fields */
input[readonly],
select[disabled] {
  background-color: #f8f9fa;
  cursor: not-allowed;
  color: #6c757d;
}

input[readonly]:focus,
select[disabled]:focus {
  border-color: #e0e0e0;
  box-shadow: none;
}

/* Enable styling when fields become active */
select:not([disabled]) {
  background-color: white;
  cursor: pointer;
}

/* Help text styling */
.text-muted {
  color: #6c757d;
  font-size: 14px;
  margin-top: 5px;
  display: block;
}

/* Stair counts grid layout */
.stair-counts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 10px;
}

/* Date picker styling */
.date-picker-container {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 8px;
  border-left: 4px solid var(--green);
  margin-top: 10px;
}

.date-input-wrapper {
  position: relative;
}

/* Number input styling */
input[type="number"] {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
}

input[type="number"]:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(138, 155, 122, 0.1);
}

/* Date input styling */
input[type="date"] {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
  background-color: white;
  cursor: pointer;
}

input[type="date"]:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(138, 155, 122, 0.1);
}

/* Authentication button styling */
.btn-auth {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px 20px;
  border: 2px solid var(--green);
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  background: white;
  color: var(--green);
}

.btn-auth:hover {
  background: var(--green);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(138, 155, 122, 0.3);
}

.btn-login {
  border-color: var(--green);
  color: #8a9b7a;
}

.btn-register {
  border-color: var(--green);
  color: #6b7b5c;
}

.btn-register:hover {
  background: var(--green);
  color: white;
}

/* Continue as guest button styling */
.btn-continue-guest {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  background: #f8f9fa;
  color: #666;
}

.btn-continue-guest:hover {
  background: #e9ecef;
  color: #333;
  border-color: #adb5bd;
  transform: translateY(-1px);
}

/* Form validation styling */
.form-control.invalid {
  border-color: #dc3545;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.form-control.valid {
  border-color: #28a745;
  box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

.error-message {
  color: #dc3545;
  font-size: 14px;
  margin-top: 5px;
  display: block;
}

.validation-summary {
  background: #f8d7da;
  color: #721c24;
  padding: 15px;
  border: 1px solid #f5c6cb;
  border-radius: 8px;
  margin-bottom: 20px;
  display: none;
}

.validation-summary h4 {
  margin: 0 0 10px 0;
  font-size: 16px;
}

.validation-summary ul {
  margin: 0;
  padding-left: 20px;
}

/* Form buttons container styling */
.form-buttons-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin: 30px auto 0;
  max-width: 600px;
}

/* Clear form button styling */
.btn-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 30px;
  border: 2px solid #dc3545;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  background: white;
  color: #dc3545;
  min-width: 160px;
  margin-top: 30px;
}

.btn-clear:hover {
  background: #dc3545;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(220, 53, 69, 0.3);
}

/* Service info section styling */
.service-info-section {
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  border-radius: 12px;
  padding: 40px;
  margin: 40px auto;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  max-width: 900px;
}

.service-info-content h2 {
  font-size: 28px;
  font-weight: 700;
  color: #333;
  margin-bottom: 20px;
  border-left: 6px solid #8a9b7a;
  padding-left: 12px;
}

.service-info-content p {
  font-size: 16px;
  line-height: 1.7;
  color: #444;
  margin-bottom: 15px;
}

.service-contact-box {
  background: #fff;
  border-left: 4px solid var(--green);
  padding: 20px;
  border-radius: 8px;
  margin-top: 25px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.service-contact-box p {
  margin-bottom: 12px;
}

.service-contact-box .phone-number {
  font-size: 20px;
  font-weight: 700;
  color: #6b7b5c;
}

@media (max-width: 768px) {
  .stair-counts-grid {
    grid-template-columns: 1fr;
  }

  .form-buttons-container {
    flex-direction: column;
    gap: 15px;
  }

  .btn-submit, .btn-clear {
    width: 100%;
    max-width: 300px;
  }
}