/* cormorant-garamond-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400;
  src: url('/static/fonts/cormorant-garamond-v21-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* montserrat-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  src: url('/static/fonts/montserrat-v31-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    background-color: rgb(190, 200, 192); /* sage */
    color: #7A7A7A; /* dark gray */
    font-weight: 400;
    font-size: 14px;
}

header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background-color: #f5f5f5; /* light */
    top: 0;
    z-index: 100;
}

.logo img {
    width: 360px;
    margin: 10px 0;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 10px;
    padding: 0;
    justify-content: center;
}

nav a {
    text-decoration: none;
    color: rgb(169, 165, 161);
}

main {
    padding-top: 30px;
}

.content-box {
    max-width: 1200px;
    margin: 100px auto;
    display: flex;
    gap: 0px;
    padding: 0px;
    background-color: rgb(253, 255, 254); /* light */
    border-radius: 0px;
    box-shadow: -6px 6px 6px rgba(0,0,0,0.4);
}

.image {
    flex: 7;
}

.image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0px;
}

.text {
    flex: 10;
    padding: 20px;    
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.text h2 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    font-size: 45px;
    color: rgb(169, 165, 161);
    margin: 0 0 0 0;
}

.text h3 {
    font-weight: 400;
    font-size: 20px;
    color: rgb(202, 188, 172);
    margin: 0;
    font-variant: small-caps;
}

.text h4 {
    margin: 0 0 0 0;
}

.text h4 + ul {
    margin-top: 0;
}

.course-dates-table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0;
}

.course-dates-table tr {
    border-bottom: 1px solid #d5d5d5;
}

.course-dates-table tr:last-child {
    border-bottom: none;
}

.course-dates-table td {
    padding: 10px 0;
    vertical-align: top;
}

.course-dates-table td:first-child {
    width: auto;
    white-space: pre;
    padding-right: 20px;
    font-weight: 400;
    color: rgb(169, 165, 161);
}

.course-dates-table td:last-child {
    width: 100%;
}

.course-dates-table td:last-child p {
    margin: 0;
    line-height: 1.4;
}

.text p {
    line-height: 1.3;
    margin-top: 0px;
}

.left-image .image {
    order: 1;
    box-shadow: 4px 0px 6px rgba(0,0,0,0.2);
}

.left-image .text {
    order: 2;
}

.right-image .image {
    order: 2;
    box-shadow: -4px 0px 6px rgba(0,0,0,0.2);
}

.right-image .text {
    order: 1;
}

footer {
    background-color: #f5f5f5;
    padding: 20px;
    text-align: center;
}

.footer-links a {
    margin: 10px 20px;
    text-decoration: none;
    color: rgb(169, 165, 161);
}

/* Form styles */
.contact-form {
    max-width: 500px;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 0px;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    background-color: #fff;
    box-sizing: border-box;
    color: #7A7A7A;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #b2c2a1;
}

.form-group.checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.form-group.checkbox input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.form-group.checkbox label {
    margin: 0;
    font-weight: 400;
}

button {
    background-color: #b2c2a1;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 400;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #a0b092;
}

.flash-messages {
    background-color: #f5f5f5;
    color: #333;
    padding: 10px;
    margin: 10px;
    border-radius: 4px;
    text-align: center;
}

.error-message {
    background-color: #ffdddd;
    color: #d8000c;
    padding: 10px;
    margin: 10px;
    border-radius: 4px;
    text-align: center;
}

.success-message {
    text-align: center;
    padding: 20px;
}

.check-sign {
    font-size: 48px;
    color: #4CAF50;
    margin-bottom: 10px;
}

.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 8px;
}

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

/* Mobile */
@media (max-width: 768px) {
    
    .logo img {
        width: 240px;
    }
    .content-box {
        flex-direction: column;
    }
    .left-image .image, .right-image .image {
        order: 1;
    }
    .left-image .text, .right-image .text {
        order: 2;
    }
    header {
        flex-direction: column;
        text-align: center;
    }
    nav ul {
        flex-direction: column;
        gap: 10px;
    }
}