/* Contact Form Styles */

/* Floating Action Button */
.contact-fab {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: transform 0.3s ease, background-color 0.3s ease, opacity 0.3s ease, box-shadow 0.3s ease;
}

body[data-theme="night"] .contact-fab {
    background: linear-gradient(135deg, #00C8FF, #0088cc);
    box-shadow: 0 4px 20px rgba(0, 200, 255, 0.4);
    color: #0a0a1a;
}

body[data-theme="day"] .contact-fab {
    background: linear-gradient(135deg, #0088cc, #006699);
    box-shadow: 0 4px 20px rgba(0, 136, 204, 0.3);
    color: #fff;
}

.contact-fab:hover {
    transform: scale(1.1);
}

body[data-theme="night"] .contact-fab:hover {
    box-shadow: 0 6px 30px rgba(0, 200, 255, 0.6);
}

body[data-theme="day"] .contact-fab:hover {
    box-shadow: 0 6px 30px rgba(0, 136, 204, 0.5);
}

.contact-fab.hidden {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.8);
}

/* Modal Overlay */
.contact-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.contact-modal::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.contact-modal.open {
    opacity: 1;
    visibility: visible;
}

/* Form Container */
.contact-form-container {
    position: relative;
    width: 90%;
    max-width: 480px;
    padding: 2.5rem;
    border-radius: 20px;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.contact-modal.open .contact-form-container {
    transform: translateY(0);
}

body[data-theme="night"] .contact-form-container {
    background: linear-gradient(145deg, rgba(20, 20, 40, 0.95), rgba(10, 10, 26, 0.98));
    border: 1px solid rgba(0, 200, 255, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

body[data-theme="day"] .contact-form-container {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98));
    border: 1px solid rgba(0, 136, 204, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

/* Close Button */
.contact-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

body[data-theme="night"] .contact-close {
    color: rgba(255, 255, 255, 0.7);
}

body[data-theme="day"] .contact-close {
    color: rgba(0, 0, 0, 0.5);
}

.contact-close:hover {
    background: rgba(128, 128, 128, 0.2);
}

/* Title */
.contact-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
    letter-spacing: 0.05em;
}

body[data-theme="night"] .contact-title {
    color: #00C8FF;
}

body[data-theme="day"] .contact-title {
    color: #0088cc;
}

/* Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contact-form.hidden {
    display: none;
}

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

.form-group label {
    font-size: 0.875rem;
    font-weight: 500;
}

body[data-theme="night"] .form-group label {
    color: rgba(255, 255, 255, 0.8);
}

body[data-theme="day"] .form-group label {
    color: rgba(0, 0, 0, 0.7);
}

.form-group input,
.form-group textarea {
    padding: 0.875rem 1rem;
    border-radius: 10px;
    border: 1px solid;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    resize: vertical;
}

body[data-theme="night"] .form-group input,
body[data-theme="night"] .form-group textarea {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
    color: #fff;
}

body[data-theme="night"] .form-group input::placeholder,
body[data-theme="night"] .form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

body[data-theme="night"] .form-group input:focus,
body[data-theme="night"] .form-group textarea:focus {
    outline: none;
    border-color: #00C8FF;
    box-shadow: 0 0 0 3px rgba(0, 200, 255, 0.15);
}

body[data-theme="day"] .form-group input,
body[data-theme="day"] .form-group textarea {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.15);
    color: #1a1a2e;
}

body[data-theme="day"] .form-group input::placeholder,
body[data-theme="day"] .form-group textarea::placeholder {
    color: rgba(0, 0, 0, 0.4);
}

body[data-theme="day"] .form-group input:focus,
body[data-theme="day"] .form-group textarea:focus {
    outline: none;
    border-color: #0088cc;
    box-shadow: 0 0 0 3px rgba(0, 136, 204, 0.15);
}

/* Submit Button */
.contact-submit {
    padding: 1rem 2rem;
    border: none;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-top: 0.5rem;
}

body[data-theme="night"] .contact-submit {
    background: linear-gradient(135deg, #00C8FF, #0088cc);
    color: #0a0a1a;
    box-shadow: 0 4px 15px rgba(0, 200, 255, 0.3);
}

body[data-theme="day"] .contact-submit {
    background: linear-gradient(135deg, #0088cc, #006699);
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 136, 204, 0.3);
}

.contact-submit:hover:not(:disabled) {
    transform: translateY(-2px);
}

body[data-theme="night"] .contact-submit:hover:not(:disabled) {
    box-shadow: 0 6px 20px rgba(0, 200, 255, 0.4);
}

body[data-theme="day"] .contact-submit:hover:not(:disabled) {
    box-shadow: 0 6px 20px rgba(0, 136, 204, 0.4);
}

.contact-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Success Message */
.contact-success {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
    padding: 2rem 0;
}

.contact-success.visible {
    display: flex;
}

body[data-theme="night"] .contact-success svg {
    color: #00C8FF;
}

body[data-theme="day"] .contact-success svg {
    color: #0088cc;
}

.contact-success h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.75rem;
    letter-spacing: 0.05em;
}

body[data-theme="night"] .contact-success h3 {
    color: #fff;
}

body[data-theme="day"] .contact-success h3 {
    color: #1a1a2e;
}

.contact-success p {
    font-size: 1rem;
}

body[data-theme="night"] .contact-success p {
    color: rgba(255, 255, 255, 0.7);
}

body[data-theme="day"] .contact-success p {
    color: rgba(0, 0, 0, 0.6);
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .contact-fab {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 50px;
        height: 50px;
    }

    .contact-form-container {
        padding: 2rem 1.5rem;
        margin: 1rem;
        width: calc(100% - 2rem);
    }

    .contact-title {
        font-size: 1.75rem;
    }
}
