/* UPIT FORM PAGE STYLES - EXACT COPY FROM REFERENCE */

/* Required Animations */
@keyframes morphingGradient {
    0%, 100% { 
        transform: scale(1) rotate(0deg); 
        opacity: 0.6; 
    }
    50% { 
        transform: scale(1.1) rotate(1deg); 
        opacity: 1; 
    }
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Form Hero Section */
.upit-hero {
    min-height: 40vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 120px;
    padding-bottom: 60px;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.1), rgba(16, 185, 129, 0.1));
}

.upit-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(14, 165, 233, 0.1) 0%, transparent 70%);
    animation: morphingGradient 8s ease-in-out infinite;
}

.upit-hero-content {
    text-align: center;
    z-index: 2;
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: #94a3b8;
}

.breadcrumb a {
    color: #0ea5e9;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #10b981;
}

.upit-hero h1 {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ffffff, #0ea5e9, #10b981);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    animation: gradientShift 4s ease-in-out infinite;
}

.upit-hero-description {
    font-size: 1.2rem;
    color: #cbd5e1;
    line-height: 1.6;
}

/* Form Container */
.form-container {
    padding: 60px 0 100px 0;
    max-width: 800px;
    margin: 0 auto;
}

.form-card {
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(14, 165, 233, 0.2);
    border-radius: 20px;
    padding: 50px;
    backdrop-filter: blur(15px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.form-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(14, 165, 233, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.form-content {
    position: relative;
    z-index: 2;
}

/* Step Headers */
.upit-step-header {
    margin-bottom: 40px;
}

.upit-step-header h2 {
    font-size: 1.8rem;
    font-weight: 800;
    color: #e2e8f0;
    margin-bottom: 8px;
}

.upit-step-number {
    color: #D7AF6B;
    font-weight: 900;
}

.upit-step-description {
    color: #94a3b8;
    font-size: 1rem;
}

/* Form Fields */
.form-group {
    margin-bottom: 24px;
}

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

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

.form-row.amount-currency {
    grid-template-columns: 2fr 1fr;
}

label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #cbd5e1;
    margin-bottom: 8px;
}

.required {
    color: #f87171;
}

input, select, textarea {
    width: 100%;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(71, 85, 105, 0.5);
    color: white;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #D7AF6B;
    box-shadow: 0 0 0 3px rgba(215, 175, 107, 0.1);
    background: rgba(15, 23, 42, 0.9);
}

input::placeholder, textarea::placeholder {
    color: #64748b;
}

select option {
    background: #1e293b;
    color: white;
}

textarea {
    min-height: 100px;
    resize: vertical;
}

/* Error Messages */
.error-message {
    color: #f87171;
    font-size: 0.8rem;
    margin-top: 6px;
    display: none;
}

.error input, .error select, .error textarea {
    border-color: #f87171;
    box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.1);
}

.error .error-message {
    display: block;
}

/* Checkbox */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 30px 0;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin: 0;
    accent-color: #D7AF6B;
    flex-shrink: 0;
    margin-top: 2px;
}

.checkbox-label {
    font-size: 0.9rem;
    color: #cbd5e1;
    line-height: 1.5;
}

.checkbox-label a {
    color: #D7AF6B;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.checkbox-label a:hover {
    color: #0ea5e9;
}

/* Agent Section */
.agent-section {
    background: rgba(15, 23, 42, 0.3);
    border: 1px solid rgba(71, 85, 105, 0.3);
    border-radius: 15px;
    padding: 30px;
    margin: 40px 0;
    display: none;
}

.agent-section.active {
    display: block;
    animation: slideIn 0.3s ease-out;
}

/* Buttons */
.form-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 40px;
}

.btn-primary {
    background: linear-gradient(135deg, #D7AF6B, #b59548);
    color: #0f172a;
    padding: 16px 32px;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary:hover:not(:disabled):not(.disabled) {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(215, 175, 107, 0.4);
}

.btn-primary:disabled,
.btn-primary.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: transparent;
    color: #0ea5e9;
    border: 1px solid #0ea5e9;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-secondary:hover {
    background: #0ea5e9;
    color: white;
    transform: translateY(-2px);
}

.toggle-agent {
    color: #cbd5e1;
    font-size: 0.9rem;
    text-decoration: underline;
    cursor: pointer;
    transition: color 0.3s ease;
}

.toggle-agent:hover {
    color: #0ea5e9;
}

/* Success Message */
.success-message {
    text-align: center;
    padding: 60px 40px;
    display: none;
}

.success-message.active {
    display: block;
}

.success-message h2 {
    font-size: 2rem;
    font-weight: 800;
    color: #e2e8f0;
    margin-bottom: 20px;
}

.success-message .highlight {
    color: #D7AF6B;
}

.success-message p {
    color: #94a3b8;
    font-size: 1.1rem;
    margin-bottom: 30px;
}

/* Loading Animation */
.loading {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.loading.active {
    display: flex;
}

.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid #0f172a;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .form-hero {
        padding-top: 100px;
        min-height: 30vh;
    }

    .upit-hero h1 {
        font-size: 2.2rem;
    }

    .form-card {
        padding: 30px 20px;
        margin: 0 10px;
    }

    .form-row.two-cols,
    .form-row.amount-currency {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column;
        align-items: stretch;
    }
}