.contact-page {
    min-height: 100vh;
    padding: 100px 1rem 2rem 1rem; 
}

.contact-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-form-wrapper {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    z-index: 2;
    margin: 0;
}

/* STAR BORDER */
.star-border-container {
    display: block;
    position: relative;
    border-radius: 20px;
    padding: 2px; 
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    overflow: hidden;
}

.star-border-container::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    background: rgba(0, 0, 0, 1);
    border-radius: 18px;
    z-index: 1;
}

.border-gradient-bottom {
    position: absolute;
    width: 400%;
    height: 80%;
    opacity: 0;
    bottom: -10px;
    right: -350%;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-color), var(--accent-color2) 8%, transparent 25%);
    animation: star-movement-bottom 8s ease-in-out infinite;
    z-index: 0;
}

.border-gradient-top {
    position: absolute;
    opacity: 0;
    width: 400%;
    height: 80%;
    top: -100px;
    left: -350%;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-color), var(--accent-color2) 8%, transparent 25%);
    animation: star-movement-top 8s ease-in-out infinite;
    z-index: 0;
}

@keyframes star-movement-bottom {
    0% {
        transform: translate(20%, 0%);
        opacity: 0;
    }
    15% {
        opacity: 0.3;
    }
    25% {
        opacity: 0.8;
    }
    75% {
        opacity: 0.8;
    }
    85% {
        opacity: 0.3;
    }
    100% {
        transform: translate(-120%, 0%);
        opacity: 0;
    }
}

@keyframes star-movement-top {
    0% {
        transform: translate(-20%, 0%);
        opacity: 0;
    }
    15% {
        opacity: 0.3;
    }
    25% {
        opacity: 0.8;
    }
    75% {
        opacity: 0.8;
    }
    85% {
        opacity: 0.3;
    }
    100% {
        transform: translate(120%, 0%);
        opacity: 0;
    }
}


.contact-title {
    font-size: 2.5rem;
    font-weight: 300;
    margin: 0 auto 25px auto;
    line-height: 1.2;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

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

.input-icon {
    position: absolute;
    left: 1rem;
    width: 20px;
    height: 20px;
    opacity: 0.7;
    z-index: 2;
    filter: brightness(0) invert(1);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    color: #ffffff;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 3px rgba(var(--accent-color2), 0.3);
    transform: translateY(-2px);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

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

.form-actions-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 2rem;
    margin-top: 1rem;
    width: fit-content; 
    margin-left: auto;
    margin-right: 0;
}

.recaptcha-wrapper {
    flex: 0 0 auto;
    width: auto;
    background: transparent;
}

.g-recaptcha {
    transform-origin: 0 0;
    border-radius: 8px;
    border: none;
}

.submit-btn-container {
    flex: 0 0 auto;
    width: auto;
    margin-left: 0;
}

.submit-btn {
    padding: 0.9rem 1.8rem 0.8rem 1.8rem;
    border: none;
    border-radius: 50px;
    font-weight: 550;
    font-size: 0.9rem;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    background: transparent;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: var(--text-light);
}

.submit-btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left 0.6s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        0 0 20px rgba(255, 255, 255, 0.1);
}

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

.submit-btn:active {
    transform: translateY(0);
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-shine {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 70%
    );
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.submit-btn:hover .btn-shine {
    opacity: 1;
    animation: shine 1.5s infinite;
}

@keyframes shine {
    0% {
        transform: translateX(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) rotate(45deg);
    }
}

.btn-icon {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
}

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.popup-overlay.show {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(30px);
    border-radius: 25px;
    padding: 3rem;
    text-align: center;
    max-width: 420px;
    width: 90%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: scale(0.8) translateY(30px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.popup-overlay.show .popup-content {
    transform: scale(1) translateY(0);
}

.popup-content.success {
    border-color: rgba(76, 175, 80, 0.3);
    background: rgba(76, 175, 80, 0.05);
}

.popup-content.error {
    border-color: rgba(244, 67, 54, 0.3);
    background: rgba(244, 67, 54, 0.05);
}

.popup-icon {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.success-checkmark {
    width: 80px;
    height: 80px;
    position: relative;
}

.success-checkmark .check-icon {
    width: 80px;
    height: 80px;
    position: relative;
    border-radius: 50%;
    box-sizing: content-box;
    border: 4px solid #4CAF50;
    background: rgba(76, 175, 80, 0.1);
}

.success-checkmark .check-icon::before {
    top: 3px;
    left: -2px;
    width: 30px;
    transform-origin: 100% 50%;
    border-radius: 100px 0 0 100px;
}

.success-checkmark .check-icon::after {
    top: 0;
    left: 30px;
    width: 60px;
    transform-origin: 0 50%;
    border-radius: 0 100px 100px 0;
    animation: rotate-circle 4.25s ease-in;
}

.success-checkmark .check-icon::before,
.success-checkmark .check-icon::after {
    content: '';
    height: 100px;
    position: absolute;
    background: rgba(0, 0, 0, 0.8);
    transform: rotate(-45deg);
}

.success-checkmark .icon-line {
    height: 5px;
    background-color: #4CAF50;
    display: block;
    border-radius: 2px;
    position: absolute;
    z-index: 10;
}

.success-checkmark .icon-line.line-tip {
    top: 46px;
    left: 14px;
    width: 25px;
    transform: rotate(45deg);
    animation: icon-line-tip 0.75s;
}

.success-checkmark .icon-line.line-long {
    top: 38px;
    right: 8px;
    width: 47px;
    transform: rotate(-45deg);
    animation: icon-line-long 0.75s;
}

.success-checkmark .icon-circle {
    top: -4px;
    left: -4px;
    z-index: 10;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    position: absolute;
    box-sizing: content-box;
    border: 4px solid rgba(76, 175, 80, 0.5);
}

.success-checkmark .icon-fix {
    top: 8px;
    width: 5px;
    left: 26px;
    z-index: 1;
    height: 85px;
    position: absolute;
    transform: rotate(-45deg);
    background-color: rgba(0, 0, 0, 0.8);
}

.error-cross {
    width: 80px;
    height: 80px;
    position: relative;
}

.error-cross .cross-icon {
    width: 80px;
    height: 80px;
    position: relative;
    border-radius: 50%;
    box-sizing: content-box;
    border: 4px solid #f44336;
    background: rgba(244, 67, 54, 0.1);
}

.error-cross .cross-line {
    height: 5px;
    background-color: #f44336;
    display: block;
    border-radius: 2px;
    position: absolute;
    z-index: 10;
    top: 37px;
    width: 47px;
}

.error-cross .cross-line.cross-line1 {
    left: 16px;
    transform: rotate(45deg);
    animation: cross-line1 0.75s;
}

.error-cross .cross-line.cross-line2 {
    right: 16px;
    transform: rotate(-45deg);
    animation: cross-line2 0.75s;
}

.error-cross .cross-circle {
    top: -4px;
    left: -4px;
    z-index: 10;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    position: absolute;
    box-sizing: content-box;
    border: 4px solid rgba(244, 67, 54, 0.5);
}

.popup-content h3 {
    color: #ffffff;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.popup-content p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

.popup-close-btn {
    position: relative;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.2);
    padding: 16px 32px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    overflow: hidden;
    min-width: 140px;
}

.popup-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

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

/* Animations */
@keyframes icon-line-tip {
    0% {
        width: 0;
        left: 1px;
        top: 19px;
    }
    54% {
        width: 0;
        left: 1px;
        top: 19px;
    }
    70% {
        width: 50px;
        left: -8px;
        top: 37px;
    }
    84% {
        width: 17px;
        left: 21px;
        top: 48px;
    }
    100% {
        width: 25px;
        left: 14px;
        top: 45px;
    }
}

@keyframes icon-line-long {
    0% {
        width: 0;
        right: 46px;
        top: 54px;
    }
    65% {
        width: 0;
        right: 46px;
        top: 54px;
    }
    84% {
        width: 55px;
        right: 0px;
        top: 35px;
    }
    100% {
        width: 47px;
        right: 8px;
        top: 38px;
    }
}

@keyframes cross-line1 {
    0% {
        width: 0;
        left: 40px;
        top: 40px;
    }
    50% {
        width: 47px;
        left: 16px;
        top: 37px;
    }
    100% {
        width: 47px;
        left: 16px;
        top: 37px;
    }
}

@keyframes cross-line2 {
    0% {
        width: 0;
        right: 40px;
        top: 40px;
    }
    50% {
        width: 47px;
        right: 16px;
        top: 37px;
    }
    100% {
        width: 47px;
        right: 16px;
        top: 37px;
    }
}

@keyframes rotate-circle {
    0% {
        transform: rotate(-45deg);
    }
    5% {
        transform: rotate(-45deg);
    }
    12% {
        transform: rotate(-405deg);
    }
    100% {
        transform: rotate(-405deg);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .contact-page {
        padding: 100px 1rem 2rem 1rem;
    }

    .contact-form-wrapper {
        padding: 2rem;
    }
    
    .contact-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .contact-form {
        gap: 1rem;
    }
    
    .form-actions-row {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 1rem;
        width: 100%;
        margin-left: 0;
    }

    .submit-btn-container {
        margin-left: 0;
        width: auto;
        display: flex;
        justify-content: center;
    }
    
    .popup-content {
        padding: 2rem;
        margin: 1rem;
    }
    
    .success-checkmark,
    .error-cross {
        width: 60px;
        height: 60px;
    }
    
    .success-checkmark .check-icon,
    .error-cross .cross-icon {
        width: 60px;
        height: 60px;
    }
    
    .success-checkmark .check-icon::before {
        width: 22px;
    }
    
    .success-checkmark .check-icon::after {
        width: 45px;
        left: 22px;
    }
    
    .success-checkmark .icon-line.line-tip {
        top: 34px;
        left: 10px;
        width: 18px;
    }
    
    .success-checkmark .icon-line.line-long {
        top: 28px;
        right: 6px;
        width: 35px;
    }
    
    .success-checkmark .icon-circle,
    .error-cross .cross-circle {
        width: 60px;
        height: 60px;
    }
    
    .success-checkmark .icon-fix {
        top: 6px;
        left: 19px;
        height: 63px;
    }
    
    .error-cross .cross-line {
        top: 27px;
        width: 35px;
    }
    
    .error-cross .cross-line.cross-line1 {
        left: 12px;
    }
    
    .error-cross .cross-line.cross-line2 {
        right: 12px;
    }
}

@media (max-width: 480px) {
    .contact-page {
        padding: 100px 0.5rem 1rem 0.5rem;
    }
    
    .contact-form-wrapper {
        padding: 1.5rem;
    }
    
    .contact-title {
        font-size: 1.75rem;
    }
    
    .contact-form input,
    .contact-form textarea {
        padding: 0.875rem 0.875rem 0.875rem 2.5rem;
        font-size: 0.95rem;
    }
    
    .input-icon {
        left: 0.75rem;
        width: 18px;
        height: 18px;
    }
    
    .submit-btn {
        padding: 14px 24px;
        font-size: 0.9rem;
        min-width: 120px;
    }
    
    .form-actions-row {
        gap: 0.75rem;
    }
    
    .popup-content {
        padding: 1.5rem;
    }
    
    .popup-content h3 {
        font-size: 1.25rem;
    }
    
    .popup-content p {
        font-size: 0.9rem;
    }
    
    .success-checkmark,
    .error-cross {
        width: 50px;
        height: 50px;
    }
    
    .success-checkmark .check-icon,
    .error-cross .cross-icon {
        width: 50px;
        height: 50px;
        border-width: 3px;
    }
    
    .success-checkmark .check-icon::before {
        width: 18px;
    }
    
    .success-checkmark .check-icon::after {
        width: 38px;
        left: 18px;
    }
    
    .success-checkmark .icon-line {
        height: 4px;
    }
    
    .success-checkmark .icon-line.line-tip {
        top: 28px;
        left: 8px;
        width: 15px;
    }
    
    .success-checkmark .icon-line.line-long {
        top: 23px;
        right: 5px;
        width: 29px;
    }
    
    .success-checkmark .icon-circle,
    .error-cross .cross-circle {
        width: 50px;
        height: 50px;
        border-width: 3px;
    }
    
    .success-checkmark .icon-fix {
        top: 5px;
        left: 16px;
        height: 52px;
    }
    
    .error-cross .cross-line {
        height: 4px;
        top: 22px;
        width: 29px;
    }
    
    .error-cross .cross-line.cross-line1 {
        left: 10px;
    }
    
    .error-cross .cross-line.cross-line2 {
        right: 10px;
    }
    
    .popup-close-btn {
        padding: 12px 24px;
        font-size: 0.9rem;
        min-width: 100px;
    }
}

.rc-anchor {
    border-radius: 37px !important;
}