/*
 * 3task Contact Form Styles
 * Theme: Dark Mode / Cyan Accent
 * Fuer 3task.de
 */

:root {
    --t3c-primary: #00d4ff;
    --t3c-primary-dim: #0099cc;
    --t3c-dark-bg: #080810;
    --t3c-card-bg: #12121c;
    --t3c-input-bg: #1a1a2a;
    --t3c-border: rgba(255,255,255,0.15);
    --t3c-border-focus: #00d4ff;
    --t3c-text-main: rgba(255, 255, 255, 0.95);
    --t3c-text-muted: rgba(255, 255, 255, 0.7);
    --t3c-text-placeholder: #7a8599;
    --t3c-success: #10b981;
    --t3c-error: #ef4444;
    --t3c-glow: rgba(0, 212, 255, 0.25);
}

/* Wrapper */
.t3-contact-wrapper {
    max-width: 800px;
    margin: 40px auto;
    padding: 40px;
    background: var(--t3c-card-bg);
    border: 1px solid var(--t3c-border);
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
    color: var(--t3c-text-main);
    font-family: inherit;
}

/* Trap (Honeypot) - Visually Hidden */
.t3-contact-trap {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    height: 0;
    width: 0;
    z-index: -1;
    overflow: hidden;
}

/* Grid Layout */
.t3-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 30px;
}

.t3-form-group {
    display: flex;
    flex-direction: column;
}

.t3-full-width {
    grid-column: 1 / -1;
}

/* Labels */
.t3-form-group label {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 10px;
    color: #94a3b8;
    letter-spacing: 0.3px;
}

/* Inputs & Textarea */
.t3-contact-form input[type="text"],
.t3-contact-form input[type="email"],
.t3-contact-form textarea,
.t3-contact-form select {
    width: 100%;
    padding: 16px 18px;
    background: var(--t3c-input-bg);
    border: 1px solid var(--t3c-border);
    border-radius: 12px;
    font-size: 15px;
    color: var(--t3c-text-main);
    transition: all 0.3s ease;
}

.t3-contact-form input:focus,
.t3-contact-form textarea:focus,
.t3-contact-form select:focus {
    border-color: var(--t3c-primary);
    background: var(--t3c-input-bg);
    outline: none;
    box-shadow: 0 0 0 3px var(--t3c-glow);
}

.t3-contact-form input::placeholder,
.t3-contact-form textarea::placeholder {
    color: var(--t3c-text-placeholder);
}

/* Select Styling */
.t3-select-wrapper {
    position: relative;
}

.t3-select-wrapper::after {
    content: '';
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid var(--t3c-primary);
    pointer-events: none;
}

.t3-contact-form select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    padding-right: 45px;
}

/* Textarea */
.t3-contact-form textarea {
    min-height: 150px;
    resize: vertical;
    line-height: 1.6;
}

/* Privacy Note */
.t3-privacy-note {
    font-size: 13px;
    color: var(--t3c-text-muted);
    margin-bottom: 20px;
    line-height: 1.6;
}

.t3-privacy-note a {
    color: var(--t3c-primary);
    text-decoration: none;
}

.t3-privacy-note a:hover {
    text-decoration: underline;
}

/* Button */
.t3-button {
    background: linear-gradient(135deg, var(--t3c-primary), var(--t3c-primary-dim));
    color: var(--t3c-dark-bg);
    border: none;
    padding: 18px 40px;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    box-shadow: 0 0 30px var(--t3c-glow);
}

.t3-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 40px var(--t3c-glow);
}

.t3-button:active {
    transform: translateY(-1px);
}

.t3-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    filter: grayscale(0.3);
}

/* Messages */
#t3-response-message {
    margin-top: 20px;
    padding: 16px 20px;
    border-radius: 12px;
    display: none;
    font-weight: 500;
    text-align: center;
}

.t3-success {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--t3c-success);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.t3-error {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--t3c-error);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Loader */
.t3-loader {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(8, 8, 16, 0.3);
    border-bottom-color: var(--t3c-dark-bg);
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: t3rotation 1s linear infinite;
    margin-left: 12px;
}

@keyframes t3rotation {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive */
@media (min-width: 769px) {
    .t3-button {
        width: auto;
        padding-left: 50px;
        padding-right: 50px;
    }

    .t3-form-footer {
        text-align: right;
    }

    .t3-privacy-note {
        text-align: left;
    }
}

@media (max-width: 768px) {
    .t3-contact-wrapper {
        padding: 24px;
        margin: 20px 0;
        border-radius: 16px;
    }

    .t3-form-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .t3-button {
        padding: 16px 30px;
    }
}
