/* Two Roads Tagline Contest - Frontend Styles */

.trbc-contest-wrap {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0;
}

/* Billboard Canvas */
.trbc-canvas-container {
    width: 100%;
    margin-bottom: 30px;
    text-align: center;
}

.trbc-canvas-container canvas {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    touch-action: none;
}

.trbc-drag-hint {
    font-size: 13px;
    color: #888;
    margin-top: 8px;
    text-align: center;
    font-style: italic;
}

/* Form Layout */
.trbc-contest-form {
    max-width: 864px;
    margin: 0 auto;
    background-color:#f1f1f1;
    padding:2rem;
    border-radius: 4px;
    border:1px solid #00263a;
}

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

.trbc-form-field {
    flex: 1;
    position: relative;
}

.trbc-form-field--half {
    flex: 1;
}

.trbc-form-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 14px;
}

.trbc-form-field label .required {
    color: #e74c3c;
}

.trbc-form-field input[type="text"],
.trbc-form-field input[type="email"],
.trbc-form-field select,
.trbc-form-field textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 15px;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
}

.trbc-form-field textarea {
    resize: vertical;
    font-family: inherit;
    line-height: 1.4;
}

.trbc-form-field input:focus,
.trbc-form-field select:focus,
.trbc-form-field textarea:focus {
    border-color: #2c6fbb;
    outline: none;
    box-shadow: 0 0 0 2px rgba(44, 111, 187, 0.2);
}

.trbc-form-field select {
    appearance: auto;
}

/* Character counter */
.trbc-char-count {
    position: absolute;
    right: 0;
    top: 0;
    font-size: 12px;
    color: #888;
}

/* Checkbox */
.trbc-form-field--checkbox label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 400;
    cursor: pointer;
}

.trbc-form-field--checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* Submit Button */
.trbc-submit-btn {
    display: inline-block;
    padding: 14px 40px;
    background-color: #c8102e;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    width: 100%;
}

.trbc-submit-btn:hover {
    background-color: #a50d24;
}

.trbc-submit-btn:disabled {
    background-color: #999;
    cursor: not-allowed;
}

/* Messages */
.trbc-message {
    padding: 15px 20px;
    border-radius: 4px;
    margin-top: 20px;
    font-size: 14px;
    line-height: 1.5;
}

.trbc-message--error {
    background-color: #fce4e4;
    border: 1px solid #e74c3c;
    color: #c0392b;
}

.trbc-message--success {
    background-color: #eafaf1;
    border: 1px solid #27ae60;
    color: #1e8449;
}

/* Success */
.trbc-success {
    text-align: center;
    padding: 40px 20px;
    max-width: 600px;
    margin: 0 auto;
}

.trbc-success p {
    font-size: 18px;
    line-height: 1.6;
    color: #1e8449;
    font-weight: 600;
}

/* Contest Closed */
.trbc-contest-closed {
    text-align: center;
    padding: 40px 20px;
    max-width: 600px;
    margin: 0 auto;
}

.trbc-contest-closed p {
    font-size: 18px;
    color: #666;
}

/* Responsive */
@media (max-width: 600px) {
    .trbc-form-row {
        flex-direction: column;
        gap: 0;
    }

    .trbc-form-field {
        margin-bottom: 15px;
    }

    .trbc-submit-btn {
        padding: 12px 20px;
        font-size: 14px;
    }

    .trbc-contest-wrap {
        padding: 10px;
    }
}
