/* George Mathews Photography - Contact Page Styles */
/* Scoped with gm- prefix for WordPress compatibility */

/* Base Reset for Contact Section */
.gm-contact *,
.gm-contact *::before,
.gm-contact *::after {
    box-sizing: border-box;
}

/* Contact Section */
.gm-contact {
    background-color: #0a0a0a;
    min-height: 100vh;
    padding: 6rem 0 4rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.gm-contact-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Hero Section */
.gm-contact-hero {
    text-align: center;
    margin-bottom: 4rem;
}

.gm-contact-title {
    font-size: 3rem;
    font-weight: 300;
    color: #ffffff;
    margin: 0 0 1.5rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.gm-contact-subtitle {
    font-size: 1.125rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto;
}

/* Form Sections */
.gm-contact-form {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.gm-form-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.gm-form-section-title {
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    margin: 0;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Inquiry Type Cards */
.gm-inquiry-type {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.gm-inquiry-option {
    cursor: pointer;
}

.gm-inquiry-option input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.gm-inquiry-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    padding: 2rem 1.5rem;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.gm-inquiry-option:hover .gm-inquiry-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.gm-inquiry-option input:checked + .gm-inquiry-card {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: #ffffff;
}

.gm-inquiry-icon {
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.3s ease;
}

.gm-inquiry-option input:checked + .gm-inquiry-card .gm-inquiry-icon {
    color: #ffffff;
}

.gm-inquiry-label {
    font-size: 1rem;
    font-weight: 400;
    color: #ffffff;
}

.gm-inquiry-desc {
    font-size: 0.8125rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.5;
}

/* Form Elements */
.gm-form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.gm-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.gm-form-label {
    font-size: 0.875rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
}

.gm-required {
    color: #ef4444;
}

.gm-optional {
    font-weight: 300;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8125rem;
}

.gm-form-input,
.gm-form-select,
.gm-form-textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    font-family: inherit;
    font-weight: 300;
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    transition: all 0.3s ease;
    outline: none;
}

.gm-form-input:focus,
.gm-form-select:focus,
.gm-form-textarea:focus {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.4);
}

.gm-form-input::placeholder,
.gm-form-textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.gm-form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.5)' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}

.gm-form-select option {
    background-color: #1a1a1a;
    color: #ffffff;
}

.gm-form-textarea {
    resize: vertical;
    min-height: 150px;
    line-height: 1.6;
}

/* Checkbox Group */
.gm-checkbox-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.gm-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: color 0.3s ease;
}

.gm-checkbox-label:hover {
    color: #ffffff;
}

.gm-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    appearance: none;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.gm-checkbox-label input[type="checkbox"]:checked {
    background-color: #ffffff;
    border-color: #ffffff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%230a0a0a' stroke-width='3'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

/* Submit Button */
.gm-form-submit {
    padding-top: 1rem;
}

.gm-submit-btn {
    width: 100%;
    padding: 1.125rem 2rem;
    font-size: 0.9375rem;
    font-weight: 400;
    font-family: inherit;
    color: #0a0a0a;
    background-color: #ffffff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.gm-submit-btn:hover:not(:disabled) {
    background-color: rgba(255, 255, 255, 0.9);
    transform: translateY(-1px);
}

.gm-submit-btn:active:not(:disabled) {
    transform: translateY(0);
}

.gm-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.gm-btn-loading {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.gm-spinner {
    animation: gm-spin 1s linear infinite;
}

@keyframes gm-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Form Messages */
.gm-form-message {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.gm-form-message svg {
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.gm-form-message strong {
    display: block;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.gm-form-message p {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 300;
    line-height: 1.5;
}

.gm-form-success {
    background-color: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #22c55e;
}

.gm-form-success a {
    color: #22c55e;
}

.gm-form-error {
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.gm-form-error a {
    color: #ef4444;
    text-decoration: underline;
}

/* Alternative Contact */
.gm-contact-alt {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.gm-contact-alt p {
    font-size: 0.9375rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

.gm-contact-alt a {
    color: #ffffff;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.gm-contact-alt a:hover {
    opacity: 0.7;
}

/* Validation States */
.gm-form-input.gm-invalid,
.gm-form-select.gm-invalid,
.gm-form-textarea.gm-invalid {
    border-color: #ef4444;
}

.gm-field-error {
    font-size: 0.8125rem;
    color: #ef4444;
    margin-top: 0.25rem;
}

/* Remove tap highlight */
.gm-inquiry-option,
.gm-checkbox-label,
.gm-submit-btn,
.gm-contact-alt a {
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

/* ==================== */
/* RESPONSIVE - TABLET  */
/* ==================== */
@media screen and (max-width: 1024px) {
    .gm-contact {
        padding: 5rem 0 3rem;
    }

    .gm-contact-container {
        padding: 0 1.5rem;
    }

    .gm-contact-title {
        font-size: 2.5rem;
    }
}

/* ==================== */
/* RESPONSIVE - MOBILE  */
/* ==================== */
@media screen and (max-width: 768px) {
    .gm-contact {
        padding: 4rem 0 3rem;
    }

    .gm-contact-hero {
        margin-bottom: 3rem;
    }

    .gm-contact-title {
        font-size: 2rem;
    }

    .gm-contact-subtitle {
        font-size: 1rem;
    }

    .gm-contact-form {
        gap: 2.5rem;
    }

    .gm-inquiry-type {
        grid-template-columns: 1fr;
    }

    .gm-inquiry-card {
        padding: 1.5rem;
    }

    .gm-form-row {
        grid-template-columns: 1fr;
    }

    .gm-checkbox-group {
        grid-template-columns: 1fr;
    }
}

/* ====================== */
/* RESPONSIVE - SM MOBILE */
/* ====================== */
@media screen and (max-width: 480px) {
    .gm-contact {
        padding: 3rem 0 2rem;
    }

    .gm-contact-container {
        padding: 0 1rem;
    }

    .gm-contact-title {
        font-size: 1.75rem;
    }

    .gm-contact-subtitle {
        font-size: 0.9375rem;
    }

    .gm-form-section-title {
        font-size: 0.6875rem;
    }

    .gm-form-input,
    .gm-form-select,
    .gm-form-textarea {
        padding: 0.75rem 0.875rem;
        font-size: 0.9375rem;
    }

    .gm-submit-btn {
        padding: 1rem 1.5rem;
        font-size: 0.875rem;
    }
}

/* Reduce Motion */
@media (prefers-reduced-motion: reduce) {
    .gm-contact *,
    .gm-contact *::before,
    .gm-contact *::after {
        transition: none !important;
        animation: none !important;
    }
}
