﻿@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root {
    --bg-main: rgb(243, 255, 254);
    --bg-light-blue: rgb(221, 237, 255);
    --text-color-main: rgb(63, 61, 86);
    --text-color-main-light: rgb(161, 159, 184);
    --link-color-main: rgb(110, 181, 248);
    --link-color-light: rgb(160, 221, 255);
    --button-bg-action: rgb(70, 124, 184);
    --button-bg-success: rgb(67, 198, 72);
    --button-bg-success-darker: rgb(39, 184, 45);
    --main-white: rgb(241, 241, 241);
    --main-white-darker: rgb(201, 201, 201);
    --plain-white: rgb(255, 255, 255);
    --subtle-shadow-img: 0 0 2px rgba(0, 0, 0, 0.2);
    --danger-red: rgb(221, 53, 53);
}

/* -- DEFAULT/RESET STYLES -- */

html {
    box-sizing: border-box;
    height: 100%;
    font-size: 10px;
}

*,
*::before,
*::after {
    box-sizing: inherit;
    padding: 0;
    margin: 0;
}

body {
    margin: 0;
    padding: 0;
}

button,
input,
select,
textarea {
    box-sizing: inherit;
    font-family: inherit;
    font-size: 100%;
    padding: 0;
    margin: 0;
}

/* IE shows a scrollbar when there is no need for one */
textarea {
    overflow: auto;
}

table {
    border-collapse: collapse;
    table-layout: fixed;
}

/* -- GENERAL STYLES -- */

*::selection {
    background-color: var(--text-color-main-light);
    color: var(--main-white);
}

body,
button {
    font-family: 'Poppins', sans-serif;
    font-size: 1.6rem;
    letter-spacing: 0.5px;
    background-color: var(--bg-main);
    color: var(--text-color-main);
}

p {
    line-height: 3rem;
}

b {
    font-weight: 600;
}

a {
    transition: all 0.2s ease-in-out;
}

a:link,
a:visited {
    color: var(--link-color-main);
}

a:hover,
a:focus,
a:active {
    color: var(--link-color-light);
}

/* Utility */

.container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

.button {
    padding: 12px 18px;
    border: none;
    border-radius: 5px;
    font-weight: 500;
    cursor: pointer;
    outline: none;
    transition: all 0.2s ease-in-out;
}

a.button {
    color: var(--main-white);
    text-decoration: none;
}

.button:hover,
.button:focus {
    box-shadow: inset 2px 2px 8px rgba(0, 0, 0, 0.1);
}

.button-action {
    background-color: var(--button-bg-action);
    color: var(--main-white);
    font-size: 1.5rem;
    margin-top: 8px;
    padding: 12px 36px;
}

.button-action:hover,
.button-action:focus {
    background-color: rgb(50, 104, 164);
}

.page-header {
    background-color: var(--bg-light-blue);
    padding: 40px 0;
}

.page-header h1 {
    font-size: 2.8rem;
    text-align: center;
}

.page-content {
    background-color: var(--bg-main);
    padding: 48px 0;
}

.page-content .container:after {
    content: '';
    display: block;
    clear: both;
}

.page-content h2 {
    margin: 16px 0;
    font-size: 2.2rem;
}

.page-content p {
    margin: 16px 0;
}

.card-container {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: stretch;
    gap: 24px;
    background-color: var(--plain-white);
    padding: 26px;
    box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    margin-bottom: 24px;
}

.card-text {
    flex: 1;
}

.card-text h2 {
    margin-top: 0;
    margin-bottom: 2.4rem;
}

.card-text p:last-child {
    margin-bottom: 0;
}

.card-image {
    flex: 1;
    max-width: 350px;
    border-radius: 8px;
    box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.card-links {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.card-links a.button {
    flex: 1;
    margin-top: 0;
    text-align: center;
    padding: 8px 12px;
}

.content-image {
    width: 400px;
    float: left;
    margin-right: 24px;
    margin-bottom: 10px;
}

.content-image img {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: var(--subtle-shadow-img);
}

p.action-line {
    /*	text-align: center;*/
    margin-top: 32px;
}

label + .text-danger {
    font-size: 1.6rem;
}

.text-danger {
    color: var(--danger-red);
    font-weight: 500;
}

/* -- NAVIGATION -- */

nav {
    padding: 32px 0;
}

nav .container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 16px;
}

.brand-logo {
    width: 48px;
    height: 48px;
    background-image: url('/img/logo-image.png');
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: 50% 50%;
}

.brand-text {
    font-weight: 700;
    font-size: 1.6rem;
}

.nav-menu {
    position: relative;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-direction: row;
    gap: 40px;
    list-style: none;
    font-weight: 600;
    height: 48px;
}

.nav-menu > li {
    height: 100%;
}

.nav-menu > li a,
.nav-menu > li .nav-dropdown-activator {
    display: inline-block;
    height: 100%;
    padding-top: 14px;
    cursor: pointer;
}

nav a {
    text-decoration: none;
    transition: 0.2s all ease-in-out;
}

nav a:link,
nav a:visited {
    color: var(--text-color-main);
}

nav a:hover,
nav a:focus,
nav a:active {
    color: var(--text-color-main-light);
}

.nav-dropdown-menu {
    position: absolute;
    z-index: 10;
    left: 25%;
    list-style: none;
    background-color: var(--bg-main);
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.2);
    opacity: 0;
    top: -400px;
    transition: opacity 0.3s ease-in-out;
    box-shadow: 0 0 16px rgba(0, 0, 0, 0.1);
}

.nav-dropdown-menu li {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    font-size: 1.4rem;
}

.nav-dropdown-menu li a {
    padding: 16px 24px;
    display: inline-block;
    width: 100%;
}

.nav-dropdown-activator:hover + .nav-dropdown-menu,
.nav-dropdown-activator:focus + .nav-dropdown-menu,
.nav-dropdown-menu:hover {
    top: 48px;
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}

/* -- FOOTER -- */

footer {
    background-color: var(--text-color-main);
    color: var(--main-white);
    font-size: 1.3rem;
    padding: 80px 0;
}

footer .container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 24px;
}

.footer-links a {
    text-decoration: none;
    color: var(--main-white);
}

.footer-links a:hover,
.footer-links a:focus,
.footer-links a:active {
    color: var(--main-white-darker);
}

/* -- PAGE: HOME -- */

/* Lead */

.body-home {
    background-image: url('/img/bg-pattern.png');
    background-repeat: repeat;
}

.lead {
    padding: 64px 0;
    padding-bottom: 88px;
}

.lead .container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: stretch;
    gap: 56px;
}

.lead-image {
    background-image: url('/img/lead-image.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: 50% 50%;
    flex: 1;
}

.lead-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 24px;
    flex: 1;
}

.lead-text h1 {
    text-transform: capitalize;
    font-size: 2.4rem;
    font-weight: 600;
}

/* Services */

.services {
    padding: 48px 0;
    padding-bottom: 64px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    background-color: var(--bg-light-blue);
}

.services h2 {
    text-align: center;
    font-weight: 600;
    font-size: 2.4rem;
    margin-bottom: 48px;
}

.service-cards {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 56px;
}

.service-card {
    background-color: var(--plain-white);
    flex: 1 400px;
    padding: 24px 32px;
    border-radius: 8px;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.1);
}

.service-card a {
    display: inline-block;
    text-align: center;
}

.service-text {
    text-align: center;
    font-size: 1.7rem;
}

.service-image {
    width: 100%;
    margin: 20px 0;
    border-radius: 8px;
    box-shadow: var(--subtle-shadow-img);
}

.service-image img {
    display: block;
    max-width: 100%;
    border-radius: 6px;
}

.button-service {
    background-color: var(--button-bg-success);
    color: var(--main-white);
    width: 100%;
}

.button-service:hover,
.button-service:focus {
    background-color: var(--button-bg-success-darker);
}

/* External links */

.external-links {
    padding: 48px 0;
    padding-bottom: 72px;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
    background-color: var(--bg-main);
}

.external-links h2 {
    text-align: center;
    font-weight: 600;
    font-size: 2.4rem;
    margin-bottom: 48px;
}

.external-links .container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 56px;
}

.external-link-container {
    border-left: 3px solid var(--text-color-main);
    padding-left: 16px;
}

/* -- PAGE: ABOUT -- */

.about-page-text-and-image {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 24px;
}

.about-page-text-and-image figure {
    height: 260px;
}

.about-page-text-and-image figcaption {
    text-align: center;
    font-style: italic;
}

.about-page-text-and-image figure img {
    max-height: 100%;
    max-width: 400px;
    box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

/* -- PAGE: CONTACT -- */

.address-container iframe {
    height: 100%;
    width: 500px;
}

.address-line {
    display: flex;
    flex-direction: row;
    gap: 16px;
    margin: 16px 0;
    line-height: 3rem;
}

.address-icon {
    font-size: 1.8rem;
}

/* -- PAGE: RESIDENCY PERMIT INDEX -- */

.card-image.ikamet-kisa-donem {
    background-image: url('/img/ikamet-kisa-donem.jpeg');
}

.card-image.ikamet-aile {
    background-image: url('/img/ikamet-aile.jpg');
}

.card-image.ikamet-uzun-donem {
    background-image: url('/img/ikamet-uzun-donem.jpg');
}

.card-image.ikamet-ogrenci {
    background-image: url('/img/ikamet-ogrenci.jpg');
}

/* -- PAGE: WORK PERMIT INDEX -- */

.card-image.calisma-izni-ikametli {
    background-image: url('/img/calisma-izni-ikametli.jpg');
}

.card-image.gecici-koruma {
    background-image: url('/img/gecici-koruma.jpg');
}

.card-image.hasta-yasli-bakimi {
    background-image: url('/img/hasta-yasli-bakimi.jpg');
}

.card-image.uluslararasi-koruma {
    background-image: url('/img/uluslararasi-koruma.jpg');
}

/* INFORMATION FORMS */

.form-page .container {
    max-width: 800px;
}

.mandotary-field-warning {
    text-align: center;
    font-weight: 600;
}

.form-group {
    margin: 52px 0;
}

.information-form h2 {
    margin-bottom: 24px;
    font-weight: 600;
}

.label-input {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.label-input + span.text-danger {
    display: block;
    width: 100%;
    text-align: right;
    font-size: 1.3rem;
}

.label-input .label {
    width: 50%;
}

.information-form label {
    font-weight: 500;
}

.label-detail {
    font-size: 1.3rem;
    font-weight: 400;
    font-style: italic;
    color: rgb(150, 150, 150);
}

.information-form input,
.information-form select {
    width: 50%;
    padding: 6px 10px;
    border: 1px solid rgb(156, 156, 156);
    border-radius: 4px;
}

.form-line {
    margin-bottom: 24px;
}

.form-line button {
    width: 100%;
}

.insurance-input {
    display: none;
}

div.insurance-options {
    width: 50%;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    gap: 64px;
    align-items: center;
}

.form-group .form-group-info {
    margin-bottom: 10px;
    margin-top: 0;
    font-size: 1.3rem;
    background-color: var(--link-color-light);
    border-radius: 6px;
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.2);
    padding: 8px 16px;
}

.form-group .form-group-info:last-of-type {
    margin-bottom: 26px;
}

.user-agreement-input input {
    width: auto;
    margin-right: 8px;
}

.user-agreement-input label {
    font-size: 1.2rem;
    font-weight: normal;
}

input.input-validation-error,
select.input-validation-error {
    border: 1px solid var(--danger-red);
}

/* -- PAGE: USER AGREEMENT -- */

.user-agreement .container {
    max-width: 800px;
}

.user-agreement h2 {
    text-transform: uppercase;
    text-align: center;
}

.user-agreement ul {
    padding-left: 36px;
}

/* -- MEDIA QUERIES -- */

@media (max-width: 1100px) {
    .container {
        width: 90%;
    }

    .lead-image {
        flex: 2;
    }

    .lead-text {
        flex: 3;
    }

    .lead-text h1 {
        font-size: 2.3rem;
    }

    .service-cards {
        gap: 40px;
    }

    .services h2,
    .external-links h2 {
        font-size: 2.2rem;
    }

    .service-card {
        padding: 20px 24px;
    }

    .service-text {
        font-size: 1.6rem;
    }

    .page-header {
        padding: 24px 0;
    }

    .page-header h1 {
        font-size: 2.4rem;
    }

    .page-content {
        padding: 32px 0;
    }

    .form-group {
        margin: 40px 0;
    }
}

@media (max-width: 950px) {
    nav {
        padding: 24px 0;
    }

    nav .container {
        flex-direction: column;
        gap: 12px;
    }

    .brand-logo {
        width: 40px;
        height: 40px;
    }

    .brand-text {
        font-size: 1.5rem;
    }

    .lead {
        padding: 56px 0;
        padding-top: 32px;
    }

    .lead .container {
        gap: 44px;
    }

    .lead-image {
        flex: 4;
    }

    .lead-text {
        flex: 5;
    }

    .lead a.button {
        width: 100%;
        text-align: center;
    }

    .no-mobile {
        display: none;
    }

    .lead-text h1,
    .page-header h1 {
        font-size: 2.2rem;
    }

    .services,
    .external-links {
        padding: 44px 0;
    }

    .services h2,
    .external-links h2 {
        margin-bottom: 44px;
    }

    .service-cards,
    .external-links .container {
        gap: 32px;
    }

    .service-card {
        flex: 1 300px;
    }

    .services h2,
    .external-links h2,
    .page-content h2 {
        font-size: 2.1rem;
    }

    footer {
        font-size: 1.2rem;
        padding: 56px 0;
    }

    .card-text {
        flex: 3;
    }

    .address-container .card-text {
        flex: 5;
    }

    .address-map {
        flex: 3;
    }

    .address-container iframe {
        width: 100%;
    }

    .card-image {
        flex: 3;
    }

    .card-text {
        flex: 5;
    }
}

@media (max-width: 710px) {
    body,
    button {
        font-size: 1.5rem;
    }

    .nav-menu {
        gap: 32px;
    }

    .lead-image {
        display: none;
    }

    .lead {
        padding-top: 12px;
    }

    .lead-text h1 {
        display: none;
    }

    .lead-text,
    .service-text {
        text-align: center;
    }

    .services,
    .external-links {
        padding: 32px 0;
        padding-bottom: 44px;
    }

    .services h2,
    .external-links h2,
    .page-content h2 {
        font-size: 2rem;
    }

    .services h2,
    .external-links h2 {
        margin-bottom: 32px;
    }

    .external-links .container {
        flex-direction: column;
    }

    footer .container {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }

    .about-page-text-and-image {
        flex-direction: column;
        align-items: center;
    }

    .lead-text h1,
    .page-header h1 {
        font-size: 2.1rem;
    }

    .founder-image-container {
        display: none;
    }

    .card-container {
        flex-direction: column;
    }

    .address-map {
        height: 256px;
    }

    .card-image {
        display: none;
    }

    .content-image {
        width: 256px;
    }

    .action-line .button {
        display: block;
    }
}

@media (max-width: 490px) {
    nav {
        padding: 16px 0;
    }

    nav .container {
        gap: 4px;
    }

    .nav-dropdown-menu {
        left: 24%;
    }

    .brand-logo {
        width: 36px;
        height: 36px;
    }

    .brand-text {
        font-size: 1.4rem;
    }

    .nav-menu {
        gap: 16px;
        font-size: 1.2rem;
    }

    .nav-dropdown-menu li a {
        padding: 16px;
    }

    .nav-dropdown-menu li {
        font-size: 1.2rem;
    }

    .lead {
        padding-bottom: 36px;
    }

    .lead-text h1,
    .page-header h1 {
        font-size: 2rem;
    }

    .services h2,
    .external-links h2,
    .page-content h2 {
        font-size: 1.9rem;
    }

    .form-group {
        margin: 36px 0;
    }

    .label-input {
        flex-direction: column;
        align-items: stretch;
    }

    .label-input .label {
        width: 100%;
    }

    .information-form input,
    .information-form select {
        width: 100%;
    }

    .content-image {
        float: none;
        width: 100%;
    }

    .card-links {
        flex-direction: column;
        align-items: stretch;
    }
}
