/* ===== SHARED MODERN FORMS STYLES ===== */
/* This file contains reusable modern form styling for all forms in the application */
/* Uses brandkit.css variables for consistent theming */

/* ===== MODERN FORM WRAPPER ===== */
.modern-form-wrapper {
    background: linear-gradient(135deg, var(--brand-grey-100) 0%, var(--brand-grey-200) 50%, var(--brand-primary-100) 100%);
    min-height: 100vh;
    padding: 60px 20px;
    position: relative;
    overflow: hidden;
}

/* Floating Shapes Animation */
.floating-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.05;
    pointer-events: none;
}

.floating-shape.shape-1 {
    width: 300px;
    height: 300px;
    background: var(--brand-yellow);
    top: -100px;
    left: -100px;
    animation: float 6s ease-in-out infinite;
}

.floating-shape.shape-2 {
    width: 200px;
    height: 200px;
    background: var(--brand-yellow-dark);
    bottom: 50px;
    right: -80px;
    animation: float 8s ease-in-out infinite reverse;
}

.floating-shape.shape-3 {
    width: 250px;
    height: 250px;
    background: var(--brand-blue);
    top: 50%;
    right: 5%;
    animation: float 10s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(30px); }
}

/* ===== MODERN FORM HEADER ===== */
.modern-form-header {
    text-align: center;
    margin-bottom: 50px;
    animation: fadeInDown 0.8s ease-out;
    position: relative;
    z-index: 1;
}

.header-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: var(--border-radius-xl);
    margin-bottom: 24px;
    box-shadow: var(--shadow-lg);
    animation: scaleIn 0.6s ease-out;
}

.header-icon i {
    font-size: 40px;
    color: var(--brand-white);
}

.modern-form-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--brand-blue);
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.modern-form-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin: 0;
    font-weight: 400;
    max-width: 500px;
    margin: 0 auto;
}

/* ===== MODERN FORM CARD ===== */
.modern-form-card {
    background: var(--brand-white);
    border-radius: var(--border-radius-2xl);
    padding: 50px;
    box-shadow: var(--shadow-lg);
    margin-bottom: 30px;
    animation: fadeInUp 0.8s ease-out;
    position: relative;
    z-index: 2;
    backdrop-filter: blur(10px);
}

/* Modern Form */
.modern-form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* ===== FORM SECTIONS ===== */
.form-section {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border-light);
}

.form-section:last-of-type {
    border-bottom: none;
    margin-bottom: 40px;
}

.section-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--brand-blue);
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title::before {
    content: '';
    width: 4px;
    height: 24px;
    background: var(--gradient-primary);
    border-radius: var(--border-radius-sm);
}

/* ===== FORM ROW GRID ===== */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

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

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

/* ===== FORM GROUP ===== */
.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--brand-blue);
    margin-bottom: 12px;
    display: block;
}

.form-group label .required {
    color: var(--brand-red);
    margin-left: 2px;
}

/* ===== MODERN INPUT FIELDS ===== */
.modern-field {
    position: relative;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper i {
    position: absolute;
    left: 16px;
    color: var(--text-secondary);
    font-size: 18px;
    pointer-events: none;
    transition: var(--transition-base);
}

.modern-input {
    width: 100%;
    border: 2px solid var(--border-light);
    border-radius: var(--border-radius-md);
    padding: 14px 14px 14px 48px;
    font-size: 0.95rem;
    font-family: inherit;
    background-color: var(--background-muted);
    color: var(--brand-blue);
    transition: var(--transition-base);
    outline: none;
}

.modern-input::placeholder {
    color: var(--text-muted);
}

.modern-input:focus {
    border-color: var(--brand-yellow);
    background-color: var(--brand-white);
    box-shadow: 0 0 0 4px rgba(243, 193, 48, 0.15), inset 0 0 0 0.5px var(--border-light);
}

.modern-input:focus ~ i {
    color: var(--brand-blue);
    transform: scale(1.1);
}

/* ===== SELECT STYLING ===== */
.select-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.select-wrapper i {
    position: absolute;
    right: 16px;
    color: var(--text-secondary);
    font-size: 16px;
    pointer-events: none;
    transition: var(--transition-base);
}

.modern-select {
    width: 100%;
    border: 2px solid var(--border-light);
    border-radius: var(--border-radius-md);
    padding: 14px 48px 14px 16px;
    font-size: 0.95rem;
    font-family: inherit;
    background-color: var(--background-muted);
    color: var(--brand-blue);
    cursor: pointer;
    appearance: none;
    transition: var(--transition-base);
    outline: none;
}

.modern-select:focus {
    border-color: var(--brand-yellow);
    background-color: var(--brand-white);
    box-shadow: 0 0 0 4px rgba(243, 193, 48, 0.15);
}

.modern-select:focus ~ i {
    color: var(--brand-blue);
    transform: rotate(180deg);
}

/* ===== TEXTAREA STYLING ===== */
.textarea-wrapper {
    position: relative;
    display: flex;
    align-items: flex-start;
}

.textarea-wrapper i {
    position: absolute;
    left: 16px;
    top: 16px;
    color: var(--text-secondary);
    font-size: 18px;
    pointer-events: none;
    transition: var(--transition-base);
}

.modern-textarea {
    width: 100%;
    border: 2px solid var(--border-light);
    border-radius: var(--border-radius-md);
    padding: 14px 14px 14px 48px;
    font-size: 0.95rem;
    font-family: inherit;
    background-color: var(--background-muted);
    color: var(--brand-blue);
    transition: var(--transition-base);
    outline: none;
    resize: vertical;
    min-height: 140px;
    max-height: 300px;
}

.modern-textarea::placeholder {
    color: var(--text-muted);
}

.modern-textarea:focus {
    border-color: var(--brand-yellow);
    background-color: var(--brand-white);
    box-shadow: 0 0 0 4px rgba(243, 193, 48, 0.15);
}

.modern-textarea:focus ~ i {
    color: var(--brand-blue);
    transform: scale(1.1);
}

/* ===== PRICE/RANGE INPUT ===== */
.price-range {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 16px;
    align-items: center;
}

.range-separator {
    text-align: center;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.9rem;
}

/* ===== ERROR MESSAGES ===== */
.error-text {
    color: var(--brand-red);
    font-size: 0.85rem;
    font-weight: 500;
    margin-top: 8px;
    display: block;
}

.alert-error {
    background: linear-gradient(135deg, var(--brand-secondary-50) 0%, var(--brand-secondary-100) 100%);
    border-left: 4px solid var(--brand-red);
    color: var(--brand-secondary-800);
    padding: 16px 20px;
    border-radius: var(--border-radius-md);
    margin-bottom: 28px;
    font-weight: 500;
}

.alert-error p {
    margin: 0;
    line-height: 1.5;
}

/* ===== SUBMIT BUTTON ===== */
.modern-submit-btn {
    background: var(--gradient-primary);
    color: var(--brand-blue);
    border: none;
    padding: 16px 40px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    transition: var(--transition-base);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-md);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 10px;
    width: 100%;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.modern-submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: var(--transition-base);
}

.modern-submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-yellow);
}

.modern-submit-btn:hover::before {
    left: 100%;
}

.modern-submit-btn:active {
    transform: translateY(-1px);
}

/* Secondary Submit Button */
.modern-submit-btn.secondary {
    background: transparent;
    color: var(--brand-blue);
    border: 2px solid var(--border-light);
}

.modern-submit-btn.secondary:hover {
    border-color: var(--brand-yellow);
    color: var(--brand-blue);
    background-color: var(--brand-primary-50);
}

/* ===== FORM FOOTER ===== */
.modern-form-footer {
    text-align: center;
    position: relative;
    z-index: 2;
}

.modern-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--brand-blue);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 12px 24px;
    border: 2px solid var(--border-light);
    border-radius: var(--border-radius-md);
    transition: var(--transition-base);
    background-color: transparent;
}

.modern-back-link:hover {
    border-color: var(--brand-yellow);
    color: var(--brand-blue);
    background-color: var(--brand-primary-50);
    transform: translateX(-5px);
}

/* ===== FULL WIDTH ===== */
.full-width {
    grid-column: 1 / -1;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .form-row {
        grid-template-columns: 1fr;
    }

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

    .price-range {
        grid-template-columns: 1fr auto 1fr;
    }
}

@media (max-width: 768px) {
    .modern-form-wrapper {
        padding: 40px 16px;
    }

    .modern-form-card {
        padding: 30px 20px;
        border-radius: 20px;
    }

    .modern-form-header {
        margin-bottom: 40px;
    }

    .modern-form-title {
        font-size: 2rem;
    }

    .form-section {
        margin-bottom: 30px;
        padding-bottom: 30px;
    }

    .section-title {
        font-size: 1.2rem;
        margin-bottom: 20px;
    }

    .form-row {
        gap: 16px;
        margin-bottom: 16px;
    }

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

    .header-icon {
        width: 70px;
        height: 70px;
    }

    .header-icon i {
        font-size: 32px;
    }
}

@media (max-width: 576px) {
    .modern-form-wrapper {
        padding: 30px 12px;
        min-height: auto;
    }

    .modern-form-card {
        padding: 20px 16px;
        margin-bottom: 20px;
    }

    .modern-form-title {
        font-size: 1.5rem;
    }

    .modern-form-subtitle {
        font-size: 0.95rem;
    }

    .section-title {
        font-size: 1.1rem;
    }

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

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

    .input-wrapper i,
    .textarea-wrapper i {
        font-size: 16px;
    }

    .modern-input,
    .modern-select,
    .modern-textarea {
        font-size: 0.9rem;
        padding-left: 40px;
    }

    .select-wrapper i {
        right: 12px;
    }

    .price-range {
        grid-template-columns: 1fr auto 1fr;
        gap: 8px;
        font-size: 0.85rem;
    }

    .modern-submit-btn {
        padding: 14px 24px;
        font-size: 0.9rem;
    }

    .header-icon {
        width: 60px;
        height: 60px;
    }

    .header-icon i {
        font-size: 28px;
    }
}

/* ===== END MODERN FORMS STYLES ===== */
