/**
 * Oslo Contact Form Styles
 * Uses CSS custom property --ocf-primary-color (set via PHP)
 */

:root {
    --ocf-primary-color: #D84D2F;
}

/* Container */
.ocf-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 150px 20px;
}

.ocf-title {
    font-size: 4.8rem;
    font-weight: 600;
    margin-bottom: 6rem;
    color: #111;
    text-align: center;
}

.ocf-description {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 30px;
}

/* Form */
.ocf-form {
    width: 100%;
}

.ocf-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.ocf-row--submit {
    justify-content: flex-end;
    margin-top: 30px;
}

.ocf-field {
    flex: 1;
}

.ocf-field--full {
    flex: 1 1 100%;
}

/* Inputs */
.ocf-form input,
.ocf-form textarea {
    width: 100%;
    padding: 16px 20px;
    font-size: 16px;
    font-family: inherit;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    color: #111;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.ocf-form input::placeholder,
.ocf-form textarea::placeholder {
    color: #999;
}

.ocf-form input:focus,
.ocf-form textarea:focus {
    outline: none;
    border-color: var(--ocf-primary-color);
    box-shadow: 0 0 0 3px rgba(216, 77, 47, 0.1);
}

.ocf-form textarea {
    resize: vertical;
    min-height: 150px;
}

/* Submit button */
.ocf-submit {
    background-color: var(--ocf-primary-color);
    color: #fff;
    border: none;
    padding: 16px 40px;
    font-size: 16px;
    font-family: inherit;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    min-width: 30rem;
}

.ocf-submit:hover {
    filter: brightness(0.9);
}

.ocf-submit:active {
    transform: scale(0.98);
}

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

/* Messages */
.ocf-message {
    padding: 16px 20px;
    border-radius: 4px;
    margin-bottom: 20px;
    display: none;
    font-size: 15px;
}

.ocf-message--success {
    display: block;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.ocf-message--error {
    display: block;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive */
@media (max-width: 768px) {
    .ocf-container {
        padding: 30px 16px;
    }

    .ocf-title {
        font-size: 2rem;
    }

    .ocf-row {
        flex-direction: column;
        gap: 16px;
    }

    .ocf-submit {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .ocf-title {
        font-size: 1.75rem;
    }

    .ocf-form input,
    .ocf-form textarea {
        padding: 14px 16px;
        font-size: 15px;
    }
}
