/* Premium styling for the Property Submission Form */

.nyg-form-container {
    min-height: 100vh;
    padding: 5rem 1rem;
    background: radial-gradient(circle at top right, #161e2e 0%, #0b0f19 100%);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    direction: rtl;
    font-family: 'Almoni', 'Rubik', sans-serif;
}

.nyg-form-container .nyg-form-card {
    width: 100%;
    max-width: 900px;
    background: rgba(22, 30, 46, 0.4);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 40px;
    padding: 5rem;
    box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.8);
    animation: slideUpScale 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUpScale {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.nyg-form-container .nyg-form-header {
    text-align: center;
    margin-bottom: 5rem;
}

.nyg-form-container .nyg-form-header .logo_img {
    max-width: 180px;
    margin-bottom: 3rem;
    filter: drop-shadow(0 0 20px rgba(56, 189, 248, 0.2));
}

.nyg-form-container .nyg-form-header h3 {
    color: #f8fafc;
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 2.5rem;
    letter-spacing: -0.04em;
    background: linear-gradient(to bottom, #ffffff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Multi-Step Indicator */
.nyg-form-container .nyg-step-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5rem;
    position: relative;
    padding: 0 2rem;
}

.nyg-form-container .nyg-step-indicator::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 4rem;
    right: 4rem;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.1), transparent);
    z-index: 1;
}

.nyg-form-container .nyg-step-indicator .step {
    position: relative;
    z-index: 2;
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.nyg-form-container .nyg-step-indicator .step span {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #111827;
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4b5563;
    font-weight: 800;
    font-size: 1.2rem;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.nyg-form-container .nyg-step-indicator .step label {
    font-size: 1rem;
    color: #4b5563;
    font-weight: 600;
    transition: all 0.5s ease;
}

.nyg-form-container .nyg-step-indicator .step.active span {
    background: #38bdf8;
    color: #0b0f19;
    border-color: #38bdf8;
    box-shadow: 0 0 30px rgba(56, 189, 248, 0.3);
    transform: scale(1.1);
}

.nyg-form-container .nyg-step-indicator .step.active label {
    color: #38bdf8;
    transform: translateY(2px);
}

/* Form Steps */
.nyg-form-container .form-step {
    display: none;
    animation: fadeInStep 0.6s ease-out;
}

@keyframes fadeInStep {
    from {
        opacity: 0;
        transform: translateX(10px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.nyg-form-container .form-step.active {
    display: block;
}

/* Auth / Login Card */
.nyg-auth-card {
    max-width: 500px !important;
    text-align: center;
}

.nyg-auth-card .nyg-form-header p {
    color: #94a3b8;
    margin-top: 1rem;
}

.nyg-login-form-wrapper {
    margin-top: 2.5rem;
    text-align: right;
}

.nyg-login-form-wrapper form {
    background: transparent !important;
    padding: 0 !important;
    box-shadow: none !important;
}

.nyg-login-form-wrapper .login-username,
.nyg-login-form-wrapper .login-password {
    margin-bottom: 2rem;
}

.nyg-login-form-wrapper label {
    display: block !important;
    color: #cbd5e1 !important;
    font-weight: 600 !important;
    margin-bottom: 0.75rem !important;
    font-size: 1.1rem !important;
}

.nyg-login-form-wrapper input[type="text"],
.nyg-login-form-wrapper input[type="password"] {
    width: 100%;
    background: rgba(10, 15, 26, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 16px !important;
    padding: 1.25rem !important;
    color: #fff !important;
    font-size: 1.1rem !important;
    transition: all 0.3s ease !important;
}

.nyg-login-form-wrapper input:focus {
    border-color: #38bdf8 !important;
    background: rgba(10, 15, 26, 0.8) !important;
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.1) !important;
}

.nyg-login-form-wrapper .login-remember {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.nyg-login-form-wrapper .login-remember label {
    margin-bottom: 0 !important;
    cursor: pointer;
}

#nyg-login-submit {
    width: 100%;
    background: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 100%);
    color: #fff;
    border: none;
    border-radius: 16px;
    padding: 1.25rem;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px -5px rgba(14, 165, 233, 0.4);
}

#nyg-login-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px -5px rgba(14, 165, 233, 0.5);
    filter: brightness(1.1);
}

.nyg-auth-footer {
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
}

.nyg-auth-footer a {
    color: #94a3b8;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nyg-auth-footer a:hover {
    color: #38bdf8;
}

/* WordPress Editor Refinement */
.nyg-form-container .nyg-editor-wrapper {
    background: rgba(10, 15, 26, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    overflow: hidden;
}

.nyg-form-container .wp-editor-container {
    border: none !important;
}

.nyg-form-container .wp-editor-tools {
    background: rgba(10, 15, 26, 0.6) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    padding: 1rem !important;
}

.nyg-form-container .quicktags-toolbar {
    background: transparent !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.nyg-form-container .wp-editor-area {
    background: transparent !important;
    color: #f1f5f9 !important;
    padding: 1.5rem !important;
    font-size: 1.1rem !important;
    border: none !important;
}

.nyg-form-container .mce-toolbar,
.nyg-form-container .mce-statusbar {
    background: transparent !important;
    border: none !important;
}

.nyg-form-container .mce-edit-area {
    background: transparent !important;
}

/* Specificity fix for labels override Bootstrap */
.nyg-form-container .nyg-form-card .input-group label {
    display: block !important;
    color: #94a3b8 !important;
    font-weight: 600 !important;
    margin-bottom: 1.25rem !important;
    font-size: 1.1rem !important;
    padding-right: 0.5rem !important;
    text-transform: none !important;
}

.nyg-form-container .input-group input,
.nyg-form-container .input-group textarea,
.nyg-form-container .input-group select {
    width: 100%;
    background: rgba(10, 15, 26, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 20px !important;
    padding: 1.25rem 1.75rem !important;
    color: #f1f5f9 !important;
    font-size: 1.2rem !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2) !important;
    appearance: none;
    -webkit-appearance: none;
}

.nyg-form-container .input-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 1.5rem center;
    background-size: 1.5rem;
}

.nyg-form-container .input-group input:focus,
.nyg-form-container .input-group textarea:focus,
.nyg-form-container .input-group select:focus {
    outline: none !important;
    border-color: rgba(56, 189, 248, 0.5) !important;
    background: rgba(10, 15, 26, 0.8) !important;
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.05), inset 0 2px 4px rgba(0, 0, 0, 0.2) !important;
}

/* Custom File Upload */
.nyg-form-container .custom-file-upload {
    position: relative;
    border: 2px dashed rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 4rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.01);
}

.nyg-form-container .custom-file-upload:hover {
    border-color: #38bdf8;
    background: rgba(56, 189, 248, 0.03);
}

.nyg-form-container .custom-file-upload input {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    cursor: pointer;
}

/* Navigation Buttons */
.nyg-form-container .form-navigation {
    display: flex;
    justify-content: flex-end;
    gap: 1.5rem;
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.nyg-form-container .form-navigation button {
    padding: 1.25rem 3.5rem;
    border-radius: 18px;
    font-weight: 700;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nyg-form-container .next-step,
.nyg-form-container .submit-form {
    background: #38bdf8;
    color: #0b0f19;
    border: none;
    box-shadow: 0 10px 25px -5px rgba(56, 189, 248, 0.3);
}

.nyg-form-container .prev-step {
    background: rgba(255, 255, 255, 0.02);
    color: #64748b;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Google Map Integration */
.nyg-form-container .nyg-custom-map-wrapper {
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    overflow: hidden;
    background: rgba(10, 15, 26, 0.4);
}

.nyg-form-container .acf-google-map {
    border: none !important;
}

.nyg-form-container .acf-google-map .title {
    background: rgba(10, 15, 26, 0.6) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.nyg-form-container .acf-google-map .title input {
    background: transparent !important;
    border: none !important;
    color: #fff !important;
}

/* Grids */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .nyg-form-container .nyg-form-card {
        padding: 3rem 1.5rem;
        border-radius: 0;
    }

    .nyg-form-container .nyg-form-header h3 {
        font-size: 2.4rem;
    }

    .nyg-form-container .nyg-step-indicator label {
        display: none;
    }

    .grid-2 {
        grid-template-columns: 1fr;
    }
}