/* ============================================
   Sell Property Form Styles
   ============================================ */

/* Hero Section */
.sell-hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    padding: 80px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.sell-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.sell-hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.sell-hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin: 0 0 1rem;
    line-height: 1.2;
}

.sell-hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.95;
    margin: 0;
    line-height: 1.6;
}

/* Content Section */
.sell-content-section {
    padding: 60px 0 80px;
    background-color: #f8f9fa;
}

.sell-content-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.sell-intro-content {
    background: #ffffff;
    padding: 40px;
    border-radius: 12px;
    margin-bottom: 40px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.sell-intro-content h2 {
    color: #2d3748;
    margin-top: 0;
}

.sell-intro-content p {
    color: #4a5568;
    line-height: 1.8;
}

/* Form Container */
.sell-form-container {
    background: #ffffff;
    padding: 50px;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
}

.sell-form-container > h2 {
    font-size: 2rem;
    color: #2d3748;
    margin: 0 0 30px;
    padding-bottom: 20px;
    border-bottom: 3px solid #667eea;
}

/* Form Sections */
.form-section {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #e2e8f0;
}

.form-section:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
}

.form-section-title {
    font-size: 1.5rem;
    color: #2d3748;
    margin: 0 0 25px;
    display: flex;
    align-items: center;
    font-weight: 600;
}

.form-section-title::before {
    content: '';
    width: 4px;
    height: 24px;
    background: #667eea;
    margin-right: 12px;
    border-radius: 2px;
}

/* Form Rows and Groups */
.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 8px;
    display: block;
}

.form-group label .required {
    color: #e53e3e;
    font-weight: 700;
}

/* Input Styles */
.sell-property-form input[type="text"],
.sell-property-form input[type="email"],
.sell-property-form input[type="tel"],
.sell-property-form input[type="number"],
.sell-property-form input[type="file"],
.sell-property-form select,
.sell-property-form textarea {
    width: 100%;
    padding: 12px 16px;
    font-size: 1rem;
    color: #2d3748;
    background-color: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.sell-property-form input[type="text"]:focus,
.sell-property-form input[type="email"]:focus,
.sell-property-form input[type="tel"]:focus,
.sell-property-form input[type="number"]:focus,
.sell-property-form select:focus,
.sell-property-form textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

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

.sell-property-form input[type="file"] {
    padding: 10px;
    cursor: pointer;
}

.sell-property-form input[type="file"]::file-selector-button {
    padding: 8px 16px;
    margin-right: 12px;
    background: #667eea;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s ease;
}

.sell-property-form input[type="file"]::file-selector-button:hover {
    background: #5568d3;
}

.form-help {
    display: block;
    margin-top: 6px;
    font-size: 0.85rem;
    color: #718096;
    font-style: italic;
}

/* Checkbox Group */
.form-checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: #ffffff;
}

.checkbox-label:hover {
    border-color: #cbd5e0;
    background: #f7fafc;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    cursor: pointer;
    accent-color: #667eea;
}

.checkbox-label span {
    font-size: 0.95rem;
    color: #2d3748;
    font-weight: 500;
}

.checkbox-label.required-checkbox {
    border: none;
    padding: 0;
    background: transparent;
}

.checkbox-label.required-checkbox:hover {
    background: transparent;
}

.checkbox-label.required-checkbox span {
    font-weight: 400;
}

.checkbox-label a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

/* Submit Button */
.form-submit {
    margin-top: 40px;
    text-align: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 40px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

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

.btn-large {
    min-width: 300px;
    padding: 18px 50px;
}

.btn-loader {
    display: none;
}

.btn.loading .btn-text {
    display: none;
}

.btn.loading .btn-loader {
    display: block;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Form Messages */
.form-messages {
    margin-top: 25px;
    padding: 16px 20px;
    border-radius: 8px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.form-messages.success {
    background-color: #c6f6d5;
    border: 2px solid #68d391;
    color: #22543d;
}

.form-messages.error {
    background-color: #fed7d7;
    border: 2px solid #fc8181;
    color: #742a2a;
}

.form-messages.warning {
    background-color: #feebc8;
    border: 2px solid #f6ad55;
    color: #744210;
}

.message-content {
    font-weight: 500;
}

/* Benefits Section */
.sell-benefits-section {
    background: #ffffff;
    padding: 50px;
    border-radius: 12px;
    margin-top: 40px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.sell-benefits-section h2 {
    font-size: 2rem;
    color: #2d3748;
    margin: 0 0 40px;
    text-align: center;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.benefit-card {
    text-align: center;
    padding: 30px 20px;
    border-radius: 12px;
    background: #f7fafc;
    transition: all 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    background: #ffffff;
}

.benefit-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    display: inline-block;
}

.benefit-card h3 {
    font-size: 1.25rem;
    color: #2d3748;
    margin: 0 0 12px;
    font-weight: 600;
}

.benefit-card p {
    font-size: 0.95rem;
    color: #4a5568;
    line-height: 1.6;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sell-hero-section {
        padding: 60px 0 40px;
    }

    .sell-hero-title {
        font-size: 2rem;
    }

    .sell-hero-subtitle {
        font-size: 1rem;
    }

    .sell-form-container {
        padding: 30px 20px;
    }

    .sell-form-container > h2 {
        font-size: 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .form-checkbox-group {
        grid-template-columns: 1fr;
    }

    .btn-large {
        min-width: 100%;
        padding: 16px 30px;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .sell-benefits-section {
        padding: 30px 20px;
    }

    .sell-intro-content {
        padding: 25px 20px;
    }
}

@media (max-width: 480px) {
    .sell-hero-title {
        font-size: 1.75rem;
    }

    .form-section-title {
        font-size: 1.25rem;
    }

    .sell-property-form input[type="text"],
    .sell-property-form input[type="email"],
    .sell-property-form input[type="tel"],
    .sell-property-form input[type="number"],
    .sell-property-form select,
    .sell-property-form textarea {
        font-size: 0.95rem;
    }
}

/* Container Override for Full Width */
.sell-content-section .container {
    max-width: 1200px;
    padding: 0 20px;
    margin: 0 auto;
}

/* Form Validation States */
.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea {
    border-color: #fc8181 !important;
    background-color: #fff5f5;
}

.form-group.has-error label {
    color: #c53030;
}

.form-group.has-error input:focus,
.form-group.has-error select:focus,
.form-group.has-error textarea:focus {
    box-shadow: 0 0 0 3px rgba(252, 129, 129, 0.2);
}

/* Accessibility Improvements */
.sell-property-form input:required:invalid {
    border-color: #e2e8f0;
}

.sell-property-form input:required:valid {
    border-color: #68d391;
}

.sell-property-form *:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .sell-hero-section,
    .form-submit,
    .sell-benefits-section {
        display: none;
    }

    .sell-form-container {
        box-shadow: none;
        border: 1px solid #e2e8f0;
    }
}
