/* ========== Global Theme Tokens ========== */
:root {
    --bg-page: #f3f3f3;
    --text-label: #7f7f7f;

    --brand: #ff0000;
    --brand-hover: #cf0202;

    --input-text: #495057;
    --input-placeholder: #9aa0a6; /* new placeholder gray */
    --input-bg: #ffffff;
    --input-border: #dde5ed;
    --focus: #6c63ff;

    --danger: #dc3545;
    --success: #28a745;
}

@font-face {
    font-family: 'GoogleSans';
    src: local('GoogleSans Medium'), local('../fonts/GoogleSans-Medium'),
    url('../fonts/GoogleSans-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'GoogleSans';
    src: local('GoogleSans Regular'), local('../fonts/GoogleSans-Regular'),
    url('../fonts/GoogleSans-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'GoogleSans';
    src: local('GoogleSans Bold'), local('../fonts/GoogleSans-Bold'),
    url('../fonts/GoogleSans-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

/* Page */
body { background-color: var(--bg-page); }

/* Labels */
label {
    color: var(--text-label);
    font-size: 14px;
}

#login-wrapper a {
    color: var(--text-label);
    font-size: 14px;
}

#register-wrapper a {
    color: var(--text-label);
    font-size: 14px;
}

#login-wrapper a:hover {
    color: var(--brand);
}

#register-wrapper a:hover {
    color: var(--brand);
}

a {
    color: #424242;
}

a:hover {
    color: #151515;
}

#register-wrapper h3 {
    margin-top: 10px;
    color: #000000;
    font-size: 18px;
}

/* Logo utility */
img.form-logo { height: 131px; margin-bottom: 30px; }

/* Buttons */
.btn-primary {
    background-color: var(--brand);
    border-color: var(--brand);
    border-radius: 30px;
    padding-top: 12px;
    padding-bottom: 12px;
    transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--brand-hover);
    border-color: var(--brand-hover);
}

.custom-select {
    display: inline-block;
    width: 100%;
    height: calc(1.5em + 1.25rem + 2px);
    padding: .375rem 1.25rem .375rem 1.25rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #767676;
    font-family: 'GoogleSans', serif;
    vertical-align: middle;
    border: 1px solid #ced4da;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border-radius: 30px;
}

/* Inputs */
.form-control {
    display: block;
    width: 100%;
    height: calc(2.3em + 0.75rem + 2px);
    padding: 0.375rem 1.25rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--input-text);
    background-color: var(--input-bg);
    background-clip: padding-box;
    border: 2px solid var(--input-border);
    border-radius: 8px;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}
.form-control:focus {
    border-color: var(--focus);
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(108, 99, 255, 0.15);
}

/* Placeholder styling */
.form-control::placeholder {
    color: var(--input-placeholder);
    opacity: 1; /* ensures consistent color across browsers */
}

/* ========== Parsley (universal, via .parsley-style-1) ========== */

/* Error list */
.parsley-style-1 .parsley-errors-list {
    margin: 6px 0 0;
    padding: 0;
    list-style: none;
    font-size: 0.875rem;
    line-height: 1.3;
    color: var(--danger);
    opacity: 0;
    transition: opacity .2s ease;
}
.parsley-style-1 .parsley-errors-list.filled { opacity: 1; }

/* Borders on states */
.parsley-style-1 .parsley-error .form-control,
.parsley-style-1 .form-control.parsley-error,
.parsley-style-1 input.parsley-error,
.parsley-style-1 select.parsley-error,
.parsley-style-1 textarea.parsley-error {
    border-color: var(--danger);
    box-shadow: none;
}
.parsley-style-1 .parsley-success .form-control,
.parsley-style-1 .form-control.parsley-success,
.parsley-style-1 input.parsley-success,
.parsley-style-1 select.parsley-success,
.parsley-style-1 textarea.parsley-success {
    border-color: var(--success);
    box-shadow: none;
}

/* Label tint */
.parsley-style-1 .parsley-error label,
.parsley-style-1 .parsley-error .form-label { color: var(--danger); }

/* Tighten label spacing */
.parsley-style-1 .form-group label,
.parsley-style-1 .parsley-input label {
    margin-bottom: 0.35rem;
}

#header-cover {
    background: url("../../assets/images/cover.jpg") no-repeat center center;
    height: 153px;
    background-size: cover;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

#investment-wrapper h3 {
    font-family: 'GoogleSans', serif;
    margin-top: 8px;
    color: white;
    font-size: 1rem;
    font-weight: normal;
}

#investment-detail p {
    font-family: 'GoogleSans', serif;
    font-size: 14px;
    color: #373737;
}

#header-cover {
    padding-top: 30px;
    padding-bottom: 30px;
}

.card-view {
    margin: 16px;
    border-radius: 4px;
    border: 1px solid #DBDBDB;
    padding: 16px 16px 0;
}

.card-view a {
    font-size: 14px;
    color: var(--text-label);
}

.card-view a:hover {
    text-decoration: underline;
    font-size: 14px;
}

.modal-title {
    font-family: 'GoogleSans', serif;
    font-weight: 700;
    font-size: 18px;
}

.modal-detail {
    font-family: 'GoogleSans', serif;
    font-weight: normal;
    font-size: 16px;
}

.investment-detail h5 {
    font-family: 'GoogleSans', serif;
    font-weight: 700;
    font-size: 16px;
    color: #292D32;
}

.company-detail h6 {
    font-family: 'GoogleSans', serif;
    font-weight: 700;
    font-size: 18px;
}

.label {
    font-family: 'GoogleSans', serif;
    font-weight: normal;
    font-size: 13px;
    color: #8B8B8B;
}

.tx-date {
    font-family: 'GoogleSans', serif;
    font-weight: normal;
    font-size: 13px;
    color: #8B8B8B;
}

body {
    padding-top: 30px;
}

#header h1 {
    color: black;
    font-family: 'GoogleSans', serif;
    font-weight: 700;
    margin-top: 30px;
}

#header p {
    font-family: 'GoogleSans', serif;
    font-style: normal;
    font-weight: 400;
    font-size: 20px;
    line-height: 34px;
    letter-spacing: -0.01em;
    color: black;
    margin-top: 30px;
}

#app_feature {
    margin-top: 50px;
    margin-bottom: 100px;
}

#app_feature h5 {
    color: black;
    font-family: 'GoogleSans', serif;
    font-style: normal;
    font-weight: 600;
    font-size: 40px;
    line-height: 34px;
    letter-spacing: -0.01em;
    margin-top: 80px;
    margin-bottom: 35px;
}

#app_feature h6 {
    color: black;
    font-family: 'GoogleSans', serif;
    font-style: normal;
    font-weight: 600;
    font-size: 25px;
    line-height: 34px;
    letter-spacing: -0.01em;
}

#app_feature h3 {
    color: black;
    font-family: 'GoogleSans', serif;
    font-style: normal;
    font-weight: 600;
    font-size: 40px;
    line-height: 34px;
    letter-spacing: -0.01em;
}

#app_feature h4 {
    color: black;
    font-family: 'GoogleSans', serif;
    font-style: normal;
    font-weight: 400;
    font-size: 18px;
    line-height: 34px;
    letter-spacing: -0.01em;
    margin-top: -10px;
}

#message {
    margin-bottom: 20px;
}

#why-connect {
    padding-top: 100px;
    background: #0E1013;
    padding-bottom: 100px;
}

#why-connect h1 {
    font-family: 'GoogleSans', serif;
    font-style: normal;
    font-weight: 500;
    text-align: center;
    font-size: 40px;
    line-height: 64px;
    color: white;
    margin-bottom: 70px;
}

.circle {
    background: #1A1D21;
    flex: none;
    height: 80px;
    width: 80px;
    border-radius: 40px;
}

#why-connect h5 {
    color: white;
    font-family: 'GoogleSans', serif;
    font-style: normal;
    font-weight: 500;
    font-size: 24px;
    line-height: 34px;
    margin-bottom: 16px;
    margin-top: 16px;
}

#why-connect p {
    color: black;
    font-family: 'GoogleSans', serif;
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 23px;
    letter-spacing: -0.01em;
}

#footer {
    padding-bottom: 10px;
}

#footer h6 {
    font-family: 'GoogleSans', serif;
    font-style: normal;
    font-weight: 400;
    font-size: 12px;
    line-height: 18px;
}

.middle {
    vertical-align: middle;
    text-align:center;
    left:10%;
    position:relative; /*makes left effective*/
    display:table-cell;
}

@media only screen and (min-width: 768px) {
    #header h1 {
        width: 50%;
        margin: 30px auto 0;
    }

    #header p {
        width: 50%;
        margin: 30px auto 0;
    }
}

/* Accessibility: reduce motion */
@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; animation: none !important; }
}
