/**
 * Property Listing Form - Airbnb Style
 * Styles for multi-step form
 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face {
    font-family: 'Cal Sans';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(https://fonts.gstatic.com/s/calsans/v2/fdN99sWUv3gWqXxqqRBTtFs04A.woff2) format('woff2');
    unicode-range: U +0102 -0103, U +0110 -0111, U +0128 -0129, U +0168 -0169, U +01A0 -01A1, U +01AF -01B0, U +0300 -0301, U +0303 -0304, U +0308 -0309, U +0323, U +0329, U +1EA0 -1EF9, U +20AB;
}

.form-wrapper {
    font-family: 'Cal Sans';
    /* background-color: #ffffff; */
    color: #222;
    line-height: 1.6;
    min-height: auto;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
    border-radius: 10px;
    margin-top: 20px;
}

/* Header */
.form-header {
    display: flex;
    justify-content: end;
    align-items: center;
    padding: 16px 48px 16px;
    /* border-bottom: 1px solid #ebebeb; */
    /* background-color: #ffffff; */
}

.form-logo {
    font-size: 24px;
    font-weight: 600;
    color: #222;
    text-decoration: none;
}

.form-logo:hover {
    text-decoration: none;
}

.save-exit {
    font-size: 14px;
    color: #000;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s;
    padding: 10px 30px;
    border: 1px solid #FF47B4;
    border-radius: 10px;
}

.save-exit:hover {
    color: #fff;
    background: linear-gradient(180deg, #FF79C9 0%, #FF47B4 100%);
    border: unset;
    padding: 11px 31px;
}

/* Main Content */
.form-content {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px 20px;
}

.form-container {
    width: 100%;
    max-width: 1000px;
}

/* Step Indicator */
.step-indicator {
    margin-bottom: 0px;
}

.step-label {
    font-size: 14px;
    font-weight: 500;
    color: #FF47B4;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

/* Step Content */
.step-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.step-content.single-column {
    grid-template-columns: 1fr;
    gap: 40px;
    max-width: 700px;
    margin: 0 auto;
}

.step-text-content-main h1 {
    font-size: 48px;
    font-weight: 700;
    color: #00aeef;
    margin-bottom: 24px;
    line-height: 1.2;
    /* letter-spacing: -0.5px; */
}

.step-text-content-main p {
    font-size: 16px;
    color: #000;
    margin-bottom: 32px;
    line-height: 1.6;
}

.step-text-content h1 {
    font-size: 36px;
    font-weight: 700;
    color: #00aeef;
    margin-bottom: 24px;
    line-height: 1.2;
    /* letter-spacing: -0.5px; */
    text-align: center;
}

.step-text-content p {
    font-size: 16px;
    color: #000;
    margin-bottom: 10px;
    line-height: 1.6;
}

/* Form Fields */
.form-fields {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-field {
    display: flex;
    flex-direction: column;
	width: 100%;
}

.form-field label {
    font-size: 14px;
    font-weight: 600;
    color: #222;
    margin-bottom: 8px;
    display: block;
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="number"],
.form-field input[type="tel"],
.form-field select,
.form-field textarea {
    padding: 10px 16px;
    font-size: 16px;
    border: 1px solid #dddddd;
    border-radius: 8px;
    background-color: #ffffff;
    color: #222;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    width: 100%;
}

.form-field input[type="text"]:focus,
.form-field input[type="email"]:focus,
.form-field input[type="number"]:focus,
.form-field input[type="tel"]:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: #222;
    box-shadow: 0 0 0 3px rgba(34, 34, 34, 0.05);
}

.form-field textarea {
    resize: vertical;
    min-height: 120px;
}

.form-field.radio-group,
.form-field.checkbox-group {
    gap: 12px;
}

.form-field.radio-group label,
.form-field.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 0;
    font-weight: 400;
    cursor: pointer;
}

.form-field input[type="radio"],
.form-field input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #FF47B4;
}

/* Card Options */
.card-options {
    display: flex;
    flex-direction: column;
    gap: 16px;
/*     margin-top: 32px; */
}

.option-card {
    cursor: pointer;
}

.card-content {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px;
    border: 2px solid #dddddd;
    border-radius: 12px;
    transition: all 0.2s;
    /* background-color: #ffffff; */
}

.option-card.active .card-content {
    border-color: #000;
    /* background-color: #f7f7f7; */
    /* border-width: 2px; */
    box-shadow: 0 0 0 2px rgba(34, 34, 34, 0.1);
}

.option-card:hover .card-content {
    border-color: #000;
}

/* Focus state for keyboard navigation */
/* .option-card:focus-within .card-content,
.option-card.keyboard-focus .card-content {
    outline: 2px solid #222;
    outline-offset: 2px;
} */

.card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    color: #222;
    font-size: 30px;
}

.card-icon svg {
    width: 32px;
    height: 32px;
}

.card-text {
    flex: 1;
}

.card-text h3 {
    font-size: 18px;
    font-weight: 500;
    color: #222;
    margin-bottom: 4px;
    line-height: 1.2;
}

.card-text p {
    font-size: 14px;
    color: #717171;
    line-height: 1.5;
    margin: 0;
}

/* Location Search */
.location-search-wrapper {
    margin-top: 32px;
}

.location-search-input {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 16px;
    border: 1px solid #dddddd;
    border-radius: 32px;
    background-color: #ffffff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.location-search-wrapper i {
    font-size: 18px;
}

.location-search-input svg {
    color: #717171;
    flex-shrink: 0;
}

.location-search-input input {
    flex: 1;
    padding: 14px 0;
    border: none;
    background-color: transparent;
    font-size: 18px;
    color: #222;
    font-family: inherit;
    border-radius: 15px;
}

.location-search-input input::placeholder {
    color: #999;
}

.location-search-input input:focus {
    outline: none;
}

.location-search-input:focus-within {
    border-color: #222;
    box-shadow: 0 0 0 3px rgba(34, 34, 34, 0.05);
}

/* Error state for location search */
.location-search-input.error {
    border-color: #ff6b6b;
    border-width: 2px;
}

.location-search-input.success {
    border-color: #22c55e;
}

/* Address Form Wrapper */
.address-form-wrapper {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.address-form-wrapper .form-field {
    margin-bottom: 0;
}

.address-form-wrapper .form-field label {
    font-size: 13px;
    font-weight: 500;
    color: #717171;
    text-transform: none;
    letter-spacing: normal;
    margin-bottom: 8px;
}

.address-form-wrapper .form-field input,
.address-form-wrapper .form-field select {
    padding: 14px 16px;
    font-size: 15px;
    border: 1px solid #dddddd;
    border-radius: 8px;
    background-color: #ffffff;
    color: #222;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    width: 100%;
}

.address-form-wrapper .form-field input::placeholder,
.address-form-wrapper .form-field select::placeholder {
    color: #999;
}

.address-form-wrapper .form-field input:focus,
.address-form-wrapper .form-field select:focus {
    outline: none;
    border-color: #222;
    box-shadow: 0 0 0 3px rgba(34, 34, 34, 0.05);
}

.address-form-wrapper .form-field select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
    padding-right: 40px;
    cursor: pointer;
}

.amenity-item i {
    font-size: 20px;
}

/* Image Section */
.step-image {
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #f5f5f5 0%, #fafafa 100%);
    border-radius: 12px;
    /* padding: 48px;
    min-height: 400px; */
}

.step-image img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
}

/* Footer / Navigation */
.form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 48px;
    border-top: 1px solid #ddd;
    /* background-color: #ffffff; */
    gap: 16px;
}

.form-footer button {
    padding: 12px 32px;
    font-size: 16px;
    font-weight: 500;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-back {
    background-color: transparent;
    color: #000;
    border: 1px solid #dddddd;
}

.btn-back:hover {
    background-color: #eee;
    border-color: #000;
}

.btn-back:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-next {
    background: linear-gradient(180deg, #FF79C9 0%, #FF47B4 100%);
    color: #ffffff;
    margin-left: auto;
    transition: all 0.3s ease;
}

.btn-next:hover {
    background-color: #000;
    filter: brightness(1.06);
}

.btn-next:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Step Pages */
.step-page {
    display: none;
}

.step-page.active {
    display: block;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .form-header,
    .form-footer {
        padding: 16px 24px;
    }

    .form-content {
        padding: 32px 16px;
    }

    .step-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .step-text-content h1 {
        font-size: 32px;
    }

    .step-image {
        min-height: 300px;
        padding: 32px;
    }

    .form-footer {
        flex-wrap: wrap;
    }

    .btn-next {
        width: 100%;
        margin-left: 0;
    }

    .map-canvas {
        min-height: 300px !important;
    }
}

/* Map Container */
.map-container {
    position: relative;
    margin-top: 0px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #dddddd;
}

.map-canvas {
    width: 100%;
    min-height: 500px;
    display: block;
}

.map-pin-instruction {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #222;
    color: #ffffff;
    padding: 12px 16px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10;
    white-space: nowrap;
}

.map-pin-instruction svg {
    width: 20px;
    height: 20px;
    color: #ffffff;
}
