/* Contact Page Specific Styles */

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.info-card {
    padding: 2rem;
    background: rgba(20, 20, 20, 0.65);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 51, 51, 0.2);
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeIn 0.8s ease forwards;
    opacity: 0;
}

.info-card:nth-child(1) { animation-delay: 0.1s; }
.info-card:nth-child(2) { animation-delay: 0.2s; }
.info-card:nth-child(3) { animation-delay: 0.3s; }

.info-card:hover {
    background: rgba(25, 25, 25, 0.78);
    border-color: rgba(255, 51, 51, 0.5);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.info-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 51, 51, 0.15);
    border: 2px solid rgba(255, 51, 51, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.info-card:hover .info-icon {
    background: rgba(255, 51, 51, 0.25);
    border-color: rgba(255, 51, 51, 0.5);
    transform: scale(1.1);
}

.info-icon svg {
    width: 24px;
    height: 24px;
    color: #ff3333;
}

.info-card h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #fff;
}

.info-card p {
    color: #b0b0b0;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.form-wrapper {
    margin-top: 3rem;
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
    background: rgba(18, 18, 18, 0.68);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 51, 51, 0.2);
    border-radius: 12px;
    animation: slideUp 0.8s ease;
}

.form-container h2 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: #fff;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #fff;
    font-weight: 500;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    min-height: 44px;
    transition: all 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 51, 51, 0.5);
    box-shadow: 0 0 10px rgba(255, 51, 51, 0.2);
}

.form-group select {
    cursor: pointer;
    padding-right: 2rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
    appearance: none;
}

.form-group select option {
    background: #1a1a1a;
    color: #fff;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group.checkbox {
    flex-direction: row;
    align-items: flex-start;
    gap: 0.75rem;
}

.form-group.checkbox input {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: #ff3333;
}

.form-group.checkbox label {
    margin-bottom: 0;
    cursor: pointer;
}

.form-group.checkbox a {
    color: #ff3333;
    text-decoration: none;
}

.form-group.checkbox a:hover {
    text-decoration: underline;
}

.error-message {
    display: none;
    color: #ff6b6b;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.error-message.show {
    display: block;
}

.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border-color: #ff6b6b;
    background: rgba(255, 107, 107, 0.05);
}

.submit-btn {
    padding: 0.85rem 2rem;
    background: linear-gradient(135deg, #ff3333 0%, #ff6b6b 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-height: 44px;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.3s ease;
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 51, 51, 0.3);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.form-message {
    display: none;
    padding: 1rem;
    border-radius: 6px;
    text-align: center;
    font-weight: 500;
    margin-top: 1rem;
    animation: slideDown 0.3s ease;
}

.form-message.success {
    display: block;
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
    color: #4caf50;
}

.form-message.error {
    display: block;
    background: rgba(244, 67, 54, 0.1);
    border: 1px solid rgba(244, 67, 54, 0.3);
    color: #f44336;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .contact-container {
        padding: 2rem 1rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .form-wrapper {
        margin-top: 2rem;
    }

    .form-container {
        padding: 1.5rem;
    }

    .form-container h2 {
        font-size: 1.4rem;
        margin-bottom: 1.5rem;
    }

    .contact-form {
        gap: 1.25rem;
    }

    .form-group label {
        font-size: 0.9rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.7rem;
        font-size: 16px; /* Prevents zoom on iOS */
    }

    .submit-btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .contact-hero {
        padding: 60px 20px;
        min-height: auto;
    }

    .contact-title {
        font-size: 1.6rem;
    }

    .contact-subtitle {
        font-size: 0.95rem;
    }

    .contact-container {
        padding: 1.5rem 1rem;
    }

    .contact-grid {
        gap: 1rem;
    }

    .info-card {
        padding: 1.5rem 1rem;
    }

    .info-card h3 {
        font-size: 1.1rem;
    }

    .info-card p {
        font-size: 0.85rem;
    }

    .form-container {
        padding: 1.25rem;
        margin-bottom: 1rem;
    }

    .form-container h2 {
        font-size: 1.3rem;
        margin-bottom: 1.25rem;
    }

    .form-group label {
        font-size: 0.85rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.65rem;
        font-size: 16px;
    }

    .form-group textarea {
        min-height: 100px;
    }

    .form-group.checkbox {
        gap: 0.5rem;
    }

    .form-group.checkbox input {
        width: 18px;
        height: 18px;
    }

    .submit-btn {
        padding: 0.7rem 1.25rem;
        font-size: 0.9rem;
    }

    .error-message {
        font-size: 0.8rem;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
