:root {
    --primary-color: #005a87;
    --secondary-color: #00a8e8;
    --bg-color: #f4f7f6;
    --card-bg: #ffffff;
    --text-color: #333;
    --border-radius: 12px;
    --shadow: 0 8px 30px rgba(0,0,0,0.05);
}

.ugarit-survey-container {
    direction: rtl;
    max-width: 700px;
    margin: 20px auto;
    padding: 0;
    background: var(--bg-color);
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-color);
}

.survey-header {
    text-align: center;
    padding: 40px 20px;
    background: #fff;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.survey-logo {
    max-width: 120px;
    height: auto;
    margin-bottom: 20px;
}

.survey-header h2 {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin: 30px 20px 15px;
    padding-right: 10px;
    border-right: 4px solid var(--secondary-color);
}

.form-section {
    background: var(--card-bg);
    padding: 25px;
    margin: 0 15px 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

@media (min-width: 600px) {
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
}

label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    color: #555;
}

input[type="text"], 
textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1.5px solid #eee;
    border-radius: 8px;
    background: #fafafa;
    transition: all 0.3s ease;
    font-size: 1rem;
}

input[type="text"]:focus, 
textarea:focus {
    border-color: var(--secondary-color);
    background: #fff;
    outline: none;
    box-shadow: 0 0 0 4px rgba(0, 168, 232, 0.1);
}

textarea {
    height: 100px;
    resize: vertical;
}

.ordered-list-inputs input {
    margin-bottom: 12px;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

@media (min-width: 480px) {
    .radio-group {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 15px;
    }
}

.radio-option {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.radio-option:hover {
    background: #edf2f4;
}

.radio-option input {
    margin-left: 10px;
}

.competitor-table-container {
    overflow-x: auto;
}

.competitor-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 400px;
}

.competitor-table th, 
.competitor-table td {
    padding: 12px;
    border-bottom: 1px solid #eee;
    text-align: right;
}

.competitor-table th {
    background: #f8f9fa;
    font-weight: 600;
}

#submit-survey {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    border: none;
    padding: 18px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: var(--border-radius);
    cursor: pointer;
    width: calc(100% - 30px);
    margin: 20px 15px 40px;
    box-shadow: 0 10px 20px rgba(0, 90, 135, 0.2);
    transition: transform 0.2s, box-shadow 0.2s;
}

#submit-survey:active {
    transform: scale(0.98);
}

#survey-message {
    margin: 0 15px 40px;
    padding: 20px;
    border-radius: var(--border-radius);
    text-align: center;
    font-weight: 600;
    display: none;
}

#survey-message.success {
    background: #e7f6ed;
    color: #2e7d32;
    display: block;
}

#survey-message.error {
    background: #ffebee;
    color: #c62828;
    display: block;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #bbb;
}
